TRICENTIS Tosca Automation Beginners Full Course | Learn TRICENTIS Tosca Automation in 5 Hours |

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
foreign [Music] so this will be 5 hours course where I will be covering the beginners and intermediate level concepts related to tricent testoster latest version 16. and this is our part one of full course so I'll be publishing part two of full course next covering advanced level concepts of present is Tasker please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you so following are the topics that I'm gonna cover in this 5 hours of the course how can we download and install price and testoster latest version 16. and I'm gonna explain you navigation of present task 16 and I'm gonna Steve the navigation menus also I'm going to teach you how to create workspace using Tasker and install task automation extension for browsers and Introduction to System under test and what is model based test Automation and about standard modules of Tosca introduction to xcan and scan your system under test with xcan identify controls by properties and anchors create control groups I'm going to teach you test case automation in four parts first create test case structure create test steps using modules populate test values for test cases run your first automated test also I'm going to cover action modes and set action modes weight on verify and select and I'll be covering action mode buffer math functions and dynamic expressions libraries and reusable tester blocks I'm going to cover the topics apply value range rescan and module merge so now let's jump onto the system start our five hours of the course as you all know price entice has released new version of Tasker 16 on 8th December 2022. Okay so I have got a lot of requests from my subscribers to start training sessions on Tasker 16 covering different concepts of automation so this is our first session where I'm gonna teach you how can we download and install the latest version of Tasker please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos so after this session I'm gonna teach you step by step how can we automate the test cases by using tricentistoska I'm going to cover most of the basic concepts of present test task by using latest version Tasker 16. okay okay so in this session I'm gonna teach you how to download and install latest version Tasker 16. okay so if you see on the screen there are four steps that you need to follow first you need to register with your organization email ID using the link that is displaying on the screen so I'm gonna paste these links in the description so that you can use the links from the description section okay and then you have to login to your support hyphen Hub dot presenters.com by using the registered email ID in the step one right and then you need to request for a license using the below link basically the link that is specified in the third step okay once you request for the license the license will be approved by the corresponding resident disk manager so once it is approved you are gonna receive an email to download and install the Tasker 16 version okay to download and install the Tasker 16 version you need to use the link that is specified in the last step okay I'm gonna paste all these links in the description okay so now let's jump onto the system and see how can we perform all these actions and how can we download and install present test task in Windows mission okay so what is our first step you have to register with your organization email ID using link right as I said earlier so this is the link let me go to the link uh it's support hub.trycentish.com okay here you will find a register you'll find resistor link you need to click on register and then you have to provide all the fields here okay mister and what is your name first name last name and then your mobile number which is optional and then what is your country um Street City ZIP and then language what is your time zone right and you need to provide your business address okay so you need to provide your business address business email that means organization email so you cannot provide your personal email keep this in mind okay and then you need to confirm your organization email and provide your password and confirm the password right and then click on I agree to the private policy and then I'm not a robot right and then you need to click on submit so as soon as you register you are going to receive an email to your organization email ID okay and then you need to activate you need to confirm that the email has been received once that is done all you need to do is our next step is you need to log into support test.com using the credentials that you have provided while registering okay so for me so I've already logged in here okay if you see support data and then I am already logged into my user okay and then once you log into your support hyphen hub.trycentish.com by using your organization credentials you need to request for license using below link okay let me show you that so this is the link I'm gonna paste this link in the description I'm gonna paste all the links in the description okay you can access all these links from the disc ipline okay so you need to click on request cloud training license as soon as you click on request crowd training license the request will be sent okay stating that deploying the status will be deploying I already sent this request earlier that's why it's got deployed and it's got approved once you are training license cloud training license been approved then the state will be changed to deployed okay so in my case I've already raised a request as soon as you raise a request you will receive an email stating that the request has been sent to our support team okay once approved the status will be changed to deployed and then you are gonna receive an email stating that the try centers manager has been approved your license and then what you need to do you need to go to support Hub tricenters.com third party license let me show you where what I'm talking about so you need to go to this link okay I'm gonna paste this link in the description okay and then you have to select trisentis Tasker 16 version right you need to click on Tasker 16. as soon as you click on Tasker 16 it's gonna download a DOT exe file okay what I already downloaded okay let me show you what it's going to download okay so it will download this particular yeah so it's going to download your present Tasker software okay so let me show you how it looks like okay okay so this is the zip file so it will be downloading in the form of zip file okay so this way try sent is see tricent is Task 16 okay and then you need to extract 60. okay you need to extract the zip file once you extract you just need to follow the instructions you need to click on double click on this LTS 16 lts.exe file and then see because I already installed it is asking me to see I mean either uninstall repair or modify because I already installed in your case you will get a buttons I mean you will get a um agreement license agreement you need to check the check box and then you need to click on next and follow the instructions that displays on the screen it's very very simple self explanatory okay once you complete your installation once you complete your installation you should see a tasker Commander how it's going to show so this is the Tasker Commander that you should see on the menu okay and you need to click on Tasker Commander as soon as you click on Tasker Commander a commander will be opened if you see this is my Tasker Commander right and if You observe about Tasker so I I clicked on task or Commander one more time that's why it's showing see if see this is my latest tri-centric Tasker 16 version okay very very latest which is released on 8th December I think 7th December or 8th December okay and if you go to about Tasker so it shows you the version as 16. once that is done how to get your license how to basically activate your license so the way is you have to click on Project right I opened the Tasker click on Project go to license and here because you are training license is cloud cloud-based license you need to click on connect and then you have to select connect to Cloud hosted license server because whenever you register and request for the cloud license for the training right a license related to Cloud will be issued for the user okay you need to select Cloud hosted license in case if you have a self-hosted license then you can select this okay in my case it's a cloud hosted license and then click on okay and then you need to provide the credentials that you have given while registering when you are registering to your support try centered support.hub right so the same email ID and the same password you have to provide here okay so let me quickly provide the same email ID and password that I have register with okay as soon as you click on OK what it will do it's gonna retrieve your Cloud license okay so retrieving your Cloud licenses and then yes you have successfully connected to the license server and can use Tasker Commander right away click on OK and then you can start creating your first project by using latest Tasker 16 version okay so in my next session I'm gonna teach you what are all the new features and what are all the different modifications that has been accommodated in the latest version of trisentis task 16 version I'm gonna teach you the advantages what are the new features added what are all the features that are got modified right so all these Concepts I'm gonna explain you in my next session after that we are going to start automating our test cases I'm going to cover lot of different concepts how to automate test cases by using Tasker latest version 16. stay tuned hope you all understand the concepts of downloading and installing Tasker latest version 16. so this is our lesson 2 where I'm gonna teach you the navigation of the Tasker 16. so basically in the tri-centives task what are all the different options that are available and what are all the different ribbons that are available and what are the different pages that are available I'm gonna teach you how to navigate them and how to analyze your Tasker UI okay and then we will start learning other automation Concepts okay so now for this session we'll stick on to the navigation of the Tosca 16. please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay so with this lesson you will be able to steer the navigation and working pains in Tosca and also you can recognize and manage key task or sections and you'll learn how to save undo redo your work if you see on the screen the default view of Tasker so on the screen you can see a default viewers view of Tosca if you see far left there is a section which is a navigation pane to keep the overview of your work and then right side in the middle there is a working pane where you'll be working on some individual items of your work and then you have another top ribbon where you have different sections test cases modules requirements and execution right all these are our different sections and also you have on top ribbon there is Home Project view test cases menu right so you have that menu also so basically all these sections I'm going to explain you in this session so now let's jump onto the system and see the navigation of your present taskbar okay so this is my latest uh price and test Tasker okay so this has the Tasker has around four main sections the first one is this is your left side pane which is called as a navigation pane where you can see the overview of your work okay your overview of your work and the next one is this right side middle pin right this one this is called working pane where you'll be managing your individual items okay on which you are working on so you'll be managing your work at individual item level okay so this is another big and the next one is if you see these are the column headers for your working pin okay so these column headers can be added are removed based on your requirement okay how you just need to right click on your column and click on column chooser and then you have these many different columns okay let's assume I want to add a column called condition you just need to double click on this so this will add a new column here if you want to remove this column just you have to click on this condition and drag and drop when you see the cross mark that will remove your color okay and then there is another section this one these are all the different tabs that are available right these are the different sections that are available in task so what are all the main sections that are available in Tasker one is test cases modules execution requirements test case design issues configurations test planning plan okay but for us I'm going to concentrate on only first four different sections okay test cases modules execution and requirements test cases no let me first tell you what is modules okay the module section where you will be maintaining your technical stuff of your system under test what do you mean by that the modules where you'll be storing your elements and the element locators of your system under test it's a kind of object repository but more advanced object repository when you compare to compare with other automation tools okay and then what is test cases so test cases where you will be managing your input values so basically the modules are your objects and object locators and the business logic and the test data that you will be supplying supplying and managing under test cases folder okay and also the flow of your test case will be managed under test cases and then what is execution so execution means where you will be able to execute your test cases and see the reports right so this is where you'll be executing your test cases and then requirements section so this requirement section where you can manage your business requirements and tie your test cases and execution suits basically your test Suites and your test cases you can map them to your corresponding requirements so that it gives you the traceability whenever you execute your test cases okay so basically you can track your entire project status what is the completed percentage what is the execution State what is the coverage of your requirements right you can manage all the requirements and then you can tie your test cases and execution test Suites to your requirements okay so these four are the main modules that we are going to concentrate on these sessions okay hope you all understand the concepts let me also cover some more topics okay so how can you manage these sections how can you manage these sections so let's say if I want to bring requirements section okay to right side pin basically as a right side tab all you need to do is click on requirements track and come to your middle of the pane so if you want to place on top as a requirement you can place here left you can place here bottom you can place here right if you want to place you can just drag and drop here see the requirement section is on the right side okay there is another way how can you open these sections if you go to sections you can just click on this execution you can simply open your section as a floating okay and also if you want to arrange these requirements or tabs you can just right click here either you can close this section or close all but this or you can float this section or currently New Vertical tab group you can make it as right see it's a new vertical tab if I want to make it as move to the next tab group I can move to next crap group right all these kind of so basically you can arrange your sections in this manner drag and drop also you can do okay and there is if you want to create these sections on your own you just need to go to your project on top ribbon right under project right click and then create a component folder right project and then under this project component folder you can again create your own modules folder and then you can create your test case folder execution folder requirements folder right so this way you can create your own sections also okay and then hope I think I have covered okay let me also tell you one more thing so if you see on top here right this is to save your workspace whatever the work you do you are doing right and this is undo your work and this is to redo your work so undo and redo Works only if you don't save your work right undo and redo can be used if you have not saved your work once you save your work you cannot use your undo and redo sections on top I am showing okay hope you all understand the concepts of how to navigate in your latest Tasker 16 version okay how can you navigate to within the different panes how can you navigate uh different sections how can you navigate your top ribbon how can you navigate to perform undo and redo and save okay hope you all understand these Concepts if you have any queries uh you can leave your queries in the comment box I'll try to respond to your queries thank you hope you all understand the concepts of navigation of present is Tosca 16 version so this is our lesson three where I'm gonna teach you how to create the workspace in present is task please do subscribe to the channel click on Bell icon you'll receive notification whenever I publish more videos thank you okay so to create the workspace first you need to download the automation specialist level 1 base dot TSU file okay this is actually a file which contains pre-created artifacts which will be relevant for your lessons so I'm gonna teach you automation Concepts in the next sessions right so this dot TSU file is necessary for you to understand the concepts so first you need to download that file and then to create a workspace you need to select a repository what kind of repository what type of repository you want to create and then you're going to provide the name of your new new workspace and use workspace template by selecting the dot TSU file that you have downloaded and then click on create okay so these are the high level steps that uh steps that you need to follow to create the workspace okay now let's jump onto the system and let's create the workflow and try sentence task okay so this is my task okay how to create workspace let's see now uh by using actual Tasker tool okay so all you need to do is first you need to click on create new button okay and then here first you need to select the type of Repository so there are different types of repositories but for this session we are gonna select as none which creates a single user workspace and then you need to select a new workspace location where you would like to store your entire workspace data right so I want to keep this as default okay and then you need to select the name of your new workspace okay YouTube uh probably like project e-commerce okay and then you have to check use workspace template okay so as I told you earlier you have to download the automation specialist level 1 base TSU file before you create workspace so this file is being provided by by trisantis Tasker whenever you install your Tasker version 16. okay so this base TSU will be coming along with your installation okay so now all you need to do here select use workspace template and browse your workspace template thus that we have downloaded just now what is that automation specialist level 1 base TSU Okay click on open and then click on OK so it will take a couple of seconds to create your entire workspace by using the base TSU file that we have attached while creating the workspace okay so that base TSU will have your predefined predefined objects and predefined modules okay so if you see here so the new project has been created and you see you already have some predefined modules if you see here modules see standard module and then you have Workshop module okay under work workshop module you have all these modules are the objects that are already added in the workspace C everything is added all the modules and the locators are added okay so that the advantage of your base TSU okay automation specialist level one base TSU hope you understand how to create the workspace so this is our lesson four where I'm gonna teach you how to install test automation extension in your browsers and also I'm gonna introduce you to the system under test that we are gonna use while automating our test cases by using Tasker in the upcoming lessons please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay so our first agenda is Introduction to System under test so what is system under test it's an application that you would like to automate or test by using Tasker that is called a system under test okay so in our lessons when we are automating the test cases we are gonna use a demo webshop.trycenters.com that is a website that is being built by tricentists people and this is open to the public so you can register to this website and start automating your test cases for training purpose okay so this is what we are going to refer in our upcoming sessions while automating our test cases okay I'm gonna just give you a walkthrough of this entire system under test I'm gonna show you what are all the different functionalities that are available and what kind of test cases that we are going to automate in the upcoming lessons okay stay tuned so what is our second agenda item our second agenda item is installing Tasker automation extension in your browsers okay so why do you we need task automation extension because so when you are actually automating any application by using task on we will be using a tasker x-scan okay so when you are actually scanning your page by using Tasker xcan it creates X browser modules to test your web application okay so to work with these created X browser modules X browser engine has been built by tricentist Tasker so to work with this x browser engine you need to install task automation extension for your browsers okay so for Chrome you have an extension for Mozilla Firefox you have an extension for Edge you have an extension okay so to install the extension follow the link that I have pasted in the description okay you can see on the screen also that is the link that I'm gonna use to install the Costco automation extension in different browsers okay now let's jump out of the system and let me show you what is our system under test web application and let me walk you through the entire application and also let me show you how can we install test automation extension okay so let's jump onto the system and see so demo webshop is our system under test so what is system under test as I explained to you the application that you would like to test by using Tasker is called system under test okay so this is demo webshop it's almost like um e-commerce site that is being built by tricentes and this is available for the public okay anyone can register and use this website okay so this has login so once you click on login you need to provide your email and then password okay so this this web you need to understand this website very well because we are going to start working on this website to automate all our test cases okay this is our system under test for our upcoming automation sessions okay so you can select any item from the menu so let's say I want to buy a present shoes select and then I want to add a blue jeans to the card add to the cut as soon as you add blue jeans to the cart it's going to show product has been added to your shopping cart so then go to shopping cart and here either you can provide your discount codes coupons and apply the coupon or you can provide your gift card code and add gift card so that you will get some discount right and you need to agree before you check out the item so agree and then check out the item so while checking out the item you need to provide your billing address okay either you can provide new billing address or you can use an existing billing address and click on continue and then what is your shipping address so I want to select my shipping address as same as billing address or you can select in-store pickup right and click on continue and then shipping methods you have several shipping methods that you can verify so you have different functionality right you can verify so if you want to automate by using ground if you want to automate by using next day second layer so the price will differ okay so if you see 10 price 40 20 or something like that okay and then click on continue and then you have different methods of payments you can test you can automate cash and delivery payment you can automate check Money credit card purchase I want to select cash on delivery for now click on continue and then you can again you will pay by Cod and then click on continue and then here you need to verify your entire billing address shipping address payment method shipping method and what's the price quantity correct what is the tax and then additional fee and what is your total amount right once you verify this you can click on confirm that means your order will be placed successfully and order number will be generated okay so this way you can shop anything books computers Electronics all the all of the all the things okay log out if you want to register to this website you can click on register provide your gender first name last name email address password and confirm password that's it very simple Okay so yourself just get registered to this website so that you will be ready for our next automation sessions okay so then what is our next agenda next agenda is how can we install task automation extension in browsers okay let's say I want to install automation extension automation extension in Chrome how to do that okay so this is the link I provided I'm gonna paste the same Link in the description also so this is the link so you follow the same link here and go down and then click on let's say I want to Chrome Google Chrome right I'm going to open this link I want a extension for the Chrome and then here if you come down there is a link directly our version is tosca16 that's why I would like to use Tyson test task 13.2 and upwards click on this so this will take you to the Chrome web store okay or you can directly go to your Chrome Web Store and search for the task automation extension so because I already added let me remove from chrome so that I can show you okay so once you land onto this page you will have add to Chrome button click on add to Chrome and then click on ADD extension as soon as you add the extension will be added here if you see here the extension I'm showing it's showing on Chrome as an extension done so let's say if you want to add extension in the edge open your edge browser go to your Edge add-ons and then search for task automation extension as soon as you search you will get a search result here task automation extension for Microsoft Edge click on get click on ADD extension immediately the extension will be added see I can see now extension for my Edge okay so this is how you can add automation extension for Edge and chrome so why do we need this we need task automation Chrome browser sorry extension for automating your system under test by using browsers because when you are actually automating your system under test by using task we are going to use xcan so that you can create X browser modules what do you mean by expert browser modules for now you can think it has object repository okay in the object repository all the element locators will be added in the form of X browser modules X browser modules okay so to have this browser modules or to access your X browser engine of your Tasker this task automation extension is necessary okay so hope you all understand our system under test and how can you install task automation extension in the browser hope you all understand the concepts of system under test web application and how can we install Tasker automation extension in different browsers so this is our lesson five where I'm gonna teach you what is model based test automation and why does Tasker tries and testoster follows model based test automation and then I'm gonna show you some standard modules of Tosca that comes along with your task installation okay so model based test automation is being used by trisantis Tasker why because the model based test automation advantages are very good compared to script based automation the model contains so the model whatever Tasker is using right those models contains the technical information and the expected behavior of your system under test so the model is then so if you see on the screen right in the middle there is a model right which is called module in the form of a tasker so you're gonna get familiar from the next session onwards why do we use models and then how to create test cases for now just listen as a theoretical part okay so from next session onwards we are going to interact with all these modules models and then test cases okay so the model whatever is created is being then fed with business data needed for testing with in the form of for testing which in the form of test cases so basically the model whatever is created is then fed with business data needed for testing which forms your test cases so basically the model or the modules itself forms test cases once you feed the business data very simple and you need not to have any scripting knowledge anyone can contribute to automation because of this model based test automation and also it reduces the maintenance if your application system under test has been changed for example then you just need to update the model which is called module and then those changes will automatically be made to all impacted test cases you need not to change the test Case by test case okay that's the very Advantage okay and these models can be reused as many times as you need these models can be reused as many times as possible and as many test cases as possible okay so that's the advantage okay and then the next agent item is standard modules in task the standard module is actually comes along with the Tasker installation okay so what is the advantage of this standard module so this stores very basic elements and functions that are useful for any kind of application automation so these are reusable modules that you need need not to build as they are already available for you because for example you need to interact with an Excel sheet you need to open an Excel sheet right you want to handle pop-up boxes so all these reusable I mean to basically interact or to do all these actions you have to build some scripts right reusable functions so in this case you need not to build them these are readily available as a module standard modules right open URL this is also one reusable function so that is available as a standard module okay so all these are all actually reusable modules that you need not to build and you need not to spend time because these are readily available in task and how and where you can find these task or standard modules so let me let's jump onto the system and see what are these standards modules how can we use them and where can you find in the task okay so let's jump onto the system to all viewers a big thank you whoever watching my YouTube videos so what I can observe around 86.8 percent of the viewers are watching my videos but uh they have not subscribed to my channel I would recommend and I would request everyone please do subscribe to the channel and encourage me in posting more and more videos uh which are helpful for you guys thank you okay so where can we find um task force standard modules okay so this is my uh task of 16 okay so when you are creating a new workspace right click on create new workspace I've already explained you how to create workspace in my previous sessions okay so when you are creating a new workspace you can see when I'm clicking on use workspace template right this is where the standard dot TSU file is available standard modules okay let's copy this path and let me go to that path okay so this is your path where I've installed my Tasker when I am installing my Tosca it creates all these folders in this path okay so under this I can see there is a file called standard.tsu this is what the Tasker standard module okay so if I use this Tasker standard module let's create one workspace standard module understanding okay let's create this workspace I'm using the standard module that is provided by Tasker Okay click on OK so where can I see the modules okay so once it creates the workspace I'm gonna navigate to modules and then I'm gonna show you what are these standard modules okay what are all the different standard modules that are available in task okay so if you see if I go to modules see these are all the standard modules that you that are being provided by task under t-box automation tool example basic Windows operation what kind of Bin Windows operations if you want to send Keys you can send keys or if you want to perform Windows operation you can perform Windows operation right if you want to scroll window then you can scroll the window and then file operations if you want to compare the file you can use this module so basically all these modules are already built you need not to create a separate script or you need not to build a script to basically use these operations right file comparison they already provided to you so you need not to build a script to compare the file right and let's assume t-box engine let's say HTML under HTML see one simple example close browser open URL so you need not to write any these are all the reusable functions or modules that is provided by Tasker so you need not to write script for opening the URL you need not to write script for row closing the browser because I can reuse this n number of times I can reuse this n number of times in any test case right that's an example and then if you want to let's go to some other examples okay open if you want to use any sap related uh modules you can use separate little modules if you want to use some Excel functions like opening Excel book workbook it's already available so you need not to build a script for connecting the Excel and then opening the Excel Book closing the Excel book creating the Excel worksheet right deleting the Excel worksheet so you need not to build all these things all these things are available PDF comparing the PDF you already have one module available right so all these kind of different kind of standard modules are already available and you can use the standard modules n number of times in any test case that you would like to automate okay it's really helpful it saves a lot of time in automating any kind of application okay hope you all understand the concept of standard modules and also what is model based testing in Tosca so from this session onwards so we'll start automating the test cases and then we'll start learning different concepts and techniques that we are going to use by using Tasker so as part of that it's very necessary to know about the introduction to xscan so this is our lesson six where I'm gonna introduce you to xcan and how can you scan your system under test by using xcan in Tosca 16. please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay so what is our agenda so by this lesson you're gonna learn how to navigate a scan and then how can you use the different x-can views and the buttons that are available under xcan window and also you will be able to identify the controls by properties and by anchor and what are all the different basic views available in xcan and what is Advanced View and what you can access by using Advanced view in xscan and also what is the purpose of select on screen option in xcan and also I'm gonna teach you how can you use the condensed view of your x-cap and then how can you save the controls to your module and how can you create the module in task okay so I think the identification control by using properties and anchor that I'm going to cover in the next session but restore all the topics how can we navigate through xcan what is the purpose of xcan how can we use the x-scan in Tasker in capturing the controls that I'm gonna teach you in this lesson now let's jump onto the system and see how can we navigate through xcan and what are all the different views available in the x-can and what are the different buttons that we have in the x-can and how can we use them okay so now let's jump out of the system so uh this is my try sentence task 16 version okay so now let's see what is this sex scan and whatever the discussion points that have told you let's see practically okay so this is my module section so I have already explained you regarding these sections in my previous session okay so you need to navigate to module section and then right click on your module parent folder and then select scan and you have to select the scan application because we are testing or we are automating an application right select an application so this will bring you a new window to select your application so basically it brings you all the applications that are opened in your system right so I need to scan my demo webshop application so as I told you will be using the demo webshop that is provided by try centers okay I explained you about this demo a web shop in my previous session so I would recommend you guys to go through this session okay so select the application that you would like to scan and then click on scan so as soon as you click on scan you will be landing onto your x-scan window and this is your basic view of your X scan okay so as soon as you're landing on to the basic VRU your x-can right now you can directly start adding the objects that you would like to automate okay controls okay let's say I want to add register you need to just single click on register that will add the control to your xcan and then login that adds your control and this is your basic View okay and what is Advanced View okay if you click on Advanced View the difference in the basic and advanced view is you can see the technical properties of your object control the technical properties of your control can be viewed in the advanced View okay and if you want to go back to basic view again you need to click on basic Arrow mark okay that takes you back to your basic View okay let's go to Advanced view again and see all these technical properties okay and the next option is select on screen so select on screen is not by default selected so you need to click on select on screen and now you can start adding new objects so basically it works same as basic view but here you can add the objects and then you also can see the technical properties okay let's add shopping cart see I have added the shopping cart let's add wish list okay and if you want to remove the select on screen view you need to again click on select on screen that will exit your select on screen view okay and then again same you can go back to basic View right the controls whatever I added still it there it's there and then let's go back to Advanced View and if you see in the advanced view I can see all the technical properties if you scroll down here under technical properties whatever the check boxes I'm seeing here right so for this shopping cart control this shopping cart control is being identified by the technical property called inner text tag if you want to identify this element by using class name you can check this box okay and one more thing is as soon as you add any new object let's say I want to add let's go back to basic View let's say I want to add a apparels in shoe as soon as you add it immediately gives you a notification that the selected item is unique okay so that's one thing and now let's see what is condensed View so when you click on this condensed View the condensed view tab will go to the right side of your screen and it gives you full control of your system under test application so that means you can view your entire application now okay this is shortcut View and now again you can add the controls as it is again I can add this control by clicking on electronics so this is added and if you want to go back to basic view again click on basic View and see if this Electronics is added yes it's there hope you understand and then save your controls so whatever the controls that you added this is your save button on top left corner as soon as you click on Save it saves all the controls to your module let's go back to module see the new module called demo webshop.login has been added and all the controls that we are we added will be saved in this new module called demo webshop.login okay and this gives you an opportunity to add more controls let's say I forgot to add another control called gift card I can add again and then again click on Save so this will update your existing module with the new control that you added okay so the module the new model it will not create a new module it basically adds a new control to the same module okay and then what is finished grade so what is the difference between save and finish okay Finish screen see when you save the control still remain on the screen and you can add the new controls but if you click on finish scan or finish screen this will clear all the controls from your screen and that creates your module see the new module with all the controls that we added now if you want to add another module called for example for example some other module other page right then you can go back to your x-scan start scanning your new page or new module okay and this the difference is when you click on finish screen it removes all the controls if you click on Save the previous controls will be on the screen okay and then you can close your X scan right and let's click on scan screen again let's say I want to add a new module okay here let's go back to your Advanced View and then now let's see what is this highlight selection option okay when you click on highlight selection so okay let me add first login okay sorry let me go back to basic and then click on login right let's go to Advanced so if I want to highlight this control let's say you have a lot of controls on the page so if you want to see what where is this login you click on highlight selection that will highlight the control that will highlight the control on your application okay so that's the advantage of your highlight again you can simply click on highlight and then remove highlight okay that's the advantage of highlight selection okay so hope I have covered all the topics that we are supposed to learn okay save and finish done okay so we saw the concept okay where so in this case right I just scanned a new module when I'm closing this I don't want to save you can just click on no this will not save a new module okay so these are all the controls that we added as a new module okay hope you all understand the basic concepts of X scan so this is very important from next sessions onwards when we start automating our test cases we are going to use our x-scan to create the modules and to capture the controls and their technical properties so if you have any queries please provide your queries in the comment box I'll try to respond to your queries thank you hope you all understand the concepts of xcan in try centers Tasker latest version 16. this is our lesson seven where I'm gonna teach you how to identify the controls by using properties and by using anchor in tricent testoster 60. and also how can you create a control group in Tasker 16. okay so what is our agenda item the first agent item is I'm gonna teach you how to identify the controls by using properties the technical properties of your control and how can you identify the controls by specific property and by using a specific property e is a default identification method in Tasker okay it's keep in mind that in generally the Tasker identifies all the controls by using properties by default and you can use unlimited unlimited number of properties for identifying your control so I'm gonna show you how can you use multiple properties in identifying the controls and also use the properties that are necessary and stable why when you are identifying a control yes you can actually use multiple properties n number of properties in identifying the object but it's not recommended to use lot of properties that slows down your system so better to use necessary and stable properties only okay and also I'm gonna teach you how can you identify the controls by using anchor property okay it's a very useful concept okay generally Tasker looks for an anchor control first and then search the target control in the relation of the anchor so what do you mean by anchor control so let's say I want to identify login button so I'm going to use a reference of anchor control probably title of the page or some other object so I'm gonna use that reference as an anchor property or anchor control so with that reference of your anchor control I'm gonna identify the login link or the login button in the reference of angle control okay and also I'm going to teach you how to create the control groups okay so all these Concepts I'm going to teach you in this session so now let's jump onto the system and see how can we identify the controls by using properties and by using anchor method okay so this is my latest version of Tasker okay so and I'm actually navigated to modules section okay so I explained about all these sections in my previous videos I would recommend you guys to visit my previous videos okay so I'm in modules section now let's what is our first agenda is identifying the controls by using properties okay let's see okay right click on modules click on scan and select application scan okay once you select application scan it's going to show you all the applications that are open in your desktop okay yeah so these are all the applications I need demo webshop and then click on scan okay so we are as soon as you click on scan right now I'm in advanced view okay this is my basic view I already explained about all these Advanced and basic views and then what is our x-scan right so I would recommend you guys to go through my previous video okay so here now I would like to add all my this product tabs okay I would like to capture the controls of my product tabs okay let's see how can we do okay there are two ways either I can use select on screen method okay let's r i can directly go to basic View and then keep clicking on these objects that will add all the objects see third fourth menu fifth menu sixth menu seventh menu okay I think this is something different okay okay so these are all the controls that I have added now I would like to go for the advanced View okay so where are the controls that we added so if you scroll down yeah these are the controls that we added correct so and one more thing is if You observe okay let me see okay so when I click on this control let me also do one thing okay let me also do one thing yeah okay so if you see on the page you have books this way and there is another categories right categories where you have again books computers Electronics operations right categories and the product tabs okay so let's assume let's now if I see the categories okay and this is let's select this as well so if you see the product called the the product categories books is the selected item is not uniquely identified not unique that means this particular books control the technical properties are matching with some other control technical properties so that's why this books category is not identified uniquely okay so to make it uniquely identified you can do one thing you can actually select multiple technical properties let's assume I want to add another technical property called visible as soon as I select visible let's see at the bottom okay see at the bottom left corner now the selected item is not unique as soon as I select a technical property called visible then the object will convert the notification turns into uniquely identified see at the bottom okay I'm clicking on this visible right side visible property done see if you see here the selected item is unique okay this is the way you can uniquely identify your controls by using technical properties so that means I have almost added one two three tag inner text and visible so three properties to identify an object or control as a unique okay so that means you can use n number of technical properties to make control identified uniquely okay and let me tell you one more thing so this on top here right demo webshop login if you see this is the title what is the title of this demo Workshop login the title is let me show you the title is demo webshop.login if I go to register then the title will change to register what demo webshop.register if I click on shopping cart then the title will change to title of the page will change to demo webshop dot cart okay so that means the title e keeps changing based on the page where you landed correct so to handle this this particular object or control I need to change the property called title how should we change I should change the property as see here instead of login I can simply put a star as a regular expression that means any page will start with demo webshop title and it might have some text okay so let me just because we already changed the page right let me rescan okay I need to rescan again okay scan let's go to Advanced view okay so I'm talking about this right this page see here I change I removed it I kept star and then that's it that means I can uniquely identify the page title like this and now what we added actually the all the products let's add all the products again okay I'm directly I I can add all the product menu items directly from here also this is also another way okay this is another way okay so let's see these are all uniquely identified okay now let's you can actually the module name you can change the module name I want to change this as demo web shop demo web shop product tabs because I'm storing all the product tab links that's why I'm naming this module as product apps okay done now you can simply finish screen that will create a module I explained you about this in earlier session also so now if you see see we have now created demo webshop product tabs and if you expand this you have all the controls that we captured while doing the xcan okay so this way identifying the controls by using multiple Properties or by using any kind of technical properties okay so what is our next agenda next agenda is identify the properties by using anchor okay so let's again let me do one thing let me create a new module Okay click on modules so let's first uh okay yeah let's be on the same page right click scan application and then and then let me do one thing right click scan application oh sorry let me first close the scanner here okay we already opened one scanner so right click click on scan and application okay so now you need to select the application as usual okay so this is demo webshop click on scan and now I want to add the categories okay instead of this I want to add the categories okay let's go back to your basic View and then add books add computers Electronics operation choose download jewelry and gift card if you see here let's go back to Advanced also because if you see in the orange color that means these objects are not uniquely identified see the selected menu is not unique the selected item is not unique okay so let's go back to Advanced view okay first okay because all these are highlighted in orange color that means these objects are not uniquely identified okay now I want to resolve this issue by using anchor okay I want to identify this books all these controls by using identify by anchor if you see on the top identify by click on anchor so first of all you need to select the control you need to select the control that you would like to identify by the angle okay I clicked on this control and then identify by anchor as soon as you click on identify by anchor the right side the identify by anchor pane will be opening okay and before you do that I need to see some more elements that are not visible on this page like div UL right or any href tags write all these kind of technical properties I would like to see how can we do that you need to use the filter here you have to expand the filter in a such a way that it shows you see now apart from books whatever the links that you are watching on the screen it shows more technical properties okay so if you see the books computers all these links are under the container called UL under the container called UL so I would like to use this container as my anchor to identify these links uniquely okay for that time what I'm going to do again first let's do books I would like to identify books as in a unique control by using anchor okay right click sorry identify by anchor and now you need to select the anchor that you would like to use in related to Books Okay so this is my angle right click on this anchor drag and drop the anchor here right side if you see on the right right side pane drag and drop the anchor here and if You observe clearly when I drag and drop the anchor it says the anchor control is not uniquely identified see to identify any control by anchored first of all the anchor should be iniquely identified okay so if you see there is an option to make anchor unique if you see at the bottom there is a button make anchor unique or I can directly select class name so that it makes unique anchor okay let's see let's make let's make anchor unique so as soon as I click on this make anchor unique what it did it selected inner HTML and if you see at the bottom now the selected item is unique that means now the anchor is unique okay and if you see the books also now turned on to gray color that means this is unique what about computers now again computers you have to do same thing right again computers you have to do same thing identify by anchor click on anchor drag ul and drop here and done this is also uniquely identified now go to electronics identify anchor drag URL container as your anchor that's it Apparition shoes identify by anchor drag the anchor control done digital download identify by anchor track the UL container as an anchor control so digital downloads are uniquely identified now jewelry identify by anchor drag the anchor control here done now gift cards right last one drag the UL control as an anchor control done so now I can see all the product categories are now uniquely identified and let me explain one more thing see in the anchor control if you see here what kind of relative algorithm that Tasker would like to consider in identifying all these categories that also you can Define there are three three types One is using the relative algorithm called Auto or shorted path or coordinate so Auto when you select auto it actually by default Tasker will use the shortest path okay if shortest path is not worked out then it uses coordinate okay that is auto what is shortest path what shortest path is first in the tree structure in the tree of your HTML the uh design right it starts identifying the object or the control from the anchor control okay first it searches for the anchor control and then from anchor control in the tree structure it start identifying your corresponding object or corresponding control in related with the anchor control okay if you use coordinate right what it will do it actually uses the coordinates to identify your control but these coordinates if you select these coordinates what happens if the screen resolution is changed then there might be big chances that the control might not be able to find okay so better you select auto or shortest path okay so for all these controls I am identifying the controls by anchor by using relative algorithm as Auto okay so once these controls are selected and one more thing is see you need not to okay so I want to add all these controls you need not to add this what I can say the container right so that's why I don't want to sell I don't want to select this container okay okay I think again it's all got Disturbed let me just again identify by anchor and then okay yeah yeah so now all are actually uniquely identified now what I can do I can save this let me save before this I want to rename this as demo webshop this time product categories okay product categories because I'm saving all the links related to product categories okay and then click on finish screen so what happens it's gonna create and let's close the xcan it's going to create another module if you see here see the new module called Product categories these are all we added by using anchor controls correct done now what is our next agenda how can you create the control groups okay what do you mean by control groups control groups are if you want to group all the controls based on the type of control let's say I want to group all the links as one cat uh control group I want to um group all the buttons as one control group I want to group all text boxes as one control group okay you can do that how let's say these are all actually links right I can simply what links product category links I can simply select all these controls and then right click and click on convert to control group what is the control group you can just rename this control group as product character categories links right so if you expand this now so all these controls are actually part of product categories links so this way you can group all of your controls based on the type I mean whatever the way you want okay or if you want to again remove these control group right click and convert to separate X module attributes if you click on this again now all these are will be separated as normal controls these are not grouped right okay hope you all understand the concepts of identify controls by properties and as I explained you identify controls by specific properties a default identification within Tasker and also I showed you how can we use the properties multiple properties in identifying the control and also user properties that are necessary and stable so basically um using properties are necessary and stable so basically we need to use the property sir sorry so there is a spell mistake okay we need to use the properties that are necessary and stable you need not to use any number of properties because using multiple more properties takes uh more time in identifying the controls okay and also I showed you how to identify controls by anchor correct and also I showed you how to create control groups okay hope you all understand the concepts by now you are very much familiar with all the concepts that are required to start test case automation by using latest version Tasker so this is our lesson eight where I'm gonna teach you the initial step that is required to automate test cases for automating the test cases by using Tasker we need to follow the series of steps I'm gonna teach you in detail in couple of next sessions to automate the test cases what are all the steps that we need to follow to complete test case automation of your manual test cases so this is lesson 8 where I'm gonna teach you the first step where we'll be creating a test case structure by using test case module in task 16. please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay so to create test case structure in Tosca first we need to navigate around the test case section so in this session I'm gonna teach you the navigation of your test case section and then we are going to Define and create the folder structure for test case creation that reflects your business workflow so I'm going to take you an example and I'm going to teach you creation of the folder structure for that particular use case and also elements containing the sequence information that means the test case structure nothing but the elements that contains the sequence of the information and to create test cases we need to actually call the modules that we created in earlier sessions I already explained you how to create the modules right so the modules are related to technical information and the test cases are related to business information so we will be creating test cases by using the modules that we already created okay and also we need to have a proper naming convention while creating test cases or test case folder structure so we and also we need to use the three approval stages stages while creating the test cases that means when you are when you start creating the test case you will be changing the Status as planned in Tasker and then once you start progressing in the test case structure or creation of the test case you will be changing the Status to in work so once the then once we complete test case creation we'll be changing the Status to completed okay so this session is mostly concentrated on the test case folder structure creation so in the subsequence sessions I'm gonna teach you other steps so that we can complete test case automation fully so now let's jump onto the system and see how can we create test case structure by using Tasker latest version 16. okay so first let me explain you what is the test case that we are going to automate in today's session and we are going to carry forward the automation of this test case in the upcoming couple of sessions okay so as I explained you so test case Automation in trycent is involved with five to six sequence of steps I'm gonna teach you each step clearly with an example so that you can understand how to automate your test case okay so in this session I'm gonna teach you how to first step of your test case automation where you will be creating a test case structure right so I already explained you what does this test case structure in my previous slide so now let's understand what is the test case that we are going to automate okay so here this is as I explained you in my previous sessions I'm gonna use demo webshop it's a website provided by try centers okay so our test case is user need to login with valid credentials once he logins with valid credentials you he need to order an item what is ordering an item okay so first we will be logging in by using a user and then order the product so let me order apparels and shoes so please remember the sequence of the business flow basically business information are the sequence of the process flow that we are talking here okay that really helps in automating your test case so now what I'm doing I'm ordering the product by clicking on the add to code I'm ordering blue jeans once I order the product now I need to start checkout process how go to shopping cart and then agree with the terms of service and then click on checkout so this is your start checkout process and then checkout process so start checkout just now we did and now what is the process to complete your checkout that is provide your billing address and then select your shipping address and then select your shipping method so this I already explained in my previous session okay select your shipping method and then you have to select your payment method cash credit card etc etc and then you need to see the payment information and then you click on continue here and next step is see we just ordered the product started the checkout and we completed checkout process now what is the next step verification of the prices so I need to verify what is the shipping cost what is the payment method additional fee what is my total cost and what is my quantity right so verification of the prices is next step once that is done I need to click on confirmation that is confirmation step what is the confirmation step click on confirmation and then see if you get the order number or not right and what is our next step is verification of success you need to verify if the order has been successfully processed and then you got the order number okay so what are all the steps we it involves the test case involves first login order product start checkout checkout process verification of prices confirmation and verification of success so these are all the sequence of actions that I need to automate to automate my entire test case so now for this we need to create a fold structure in try sentence task so this is my try sentence Tasker I have already explained you a different sections of modules requirements execution test cases right I already explained in my previous session I would recommend you guys to visit previous session to understand more about current session okay so now first to automate your test case you need to create a test case structure okay so for that first let me so this is my test case section so which is in blue and green color Okay blue color basically the blue color section is test case section okay I am in test case section first let me create right click on the test case the main test case folder and then create a folder this is our eighth session correct so I want to create a folder called zero eight sorry session okay zero eight in work okay let's under this folder I want to create another folder right click on the folder and click on create folder the name name this as session sorry session zero eight test case structure so we are creating test Square structure structure that's why I'm naming the test case folder as test case structure okay what is our test case keeping cost basically what we are doing we are actually verifying the shipping cost and then successful message right I want to create a test case now in this folder see naming Convention of your folder structure are the folders and the test cases are very very important okay create right click and this is your folder I want to create a test case so this is the symbol of your test case the round circle with arrow okay create test case and name this as shipping costs okay so if you see here this is my test case okay and now you need to navigate to test cases how you just in the left side this is your high level work structure correct double click on this and the right side is where you will be planning or you will be writing your test steps okay so now as soon as you create your test case the work state needs to be changed see if you see the by default work state is planned because now I started working on this particular test case mark this as in work I explained you the states of your test cases in my previous slide okay now my test case is in the work right I'm working on this test case here under this test case I need to create a step folder structure so this is my test case structure test case folder structure once I create a test case you need to create test step folder structure okay right click let me create three folders my first the step folder structure is precondition and then my second folder is a process actual process and then the third folder is post condition right so I created the folder structure of my test steps under this process let's expand really left side okay under this process I want to create six different folders okay so for that you just click on process folder in the left pane so that the process will be opening in your right pane okay now I need to create six different folders right click so I explained you the process where the login process right login order product start checkout right so that is what I'm going to create now so first what is the process first I need to create or I need to order the product right order product once I order the product what is my test case flow start checkout start checkout once you start the checkout thank you check out process need to complete correct so check out where you'll be entering uh your shipping method payment method and all these things check out process so checkout process is done and then you need to verify the prices so right click again create folder verification of prizes right once that is done my next is confirmation I have to confirm the order right confirmation okay once confirmation is done you need to verify the successful order placement correct right click create folder verification of success verification of success right so now I've created six different folders under process so if you go to test case now if you see here this is my entire test case structure my test case is some test case like called test case structure under this I have created one test case called shipping costs under this test case I have created three main folders precondition process post condition and then under process I have defined the flow of the process order product start checkout checkout process verification of prices confirmation verification of success so that means now this test case is a meaningful test case this defines my business flow I created the test case structure with a business View right so for this session that is it so in the next session so once you create your test case structure now you need a technical I already explained about modules right where we store the technical information of your system under test and this is your test case structure so now we need to combine the technical information with this case structure and provide your business information or the test data that is required to steer your test case right so our first step of our test case automation is done so in the next session I am going to teach you our next step to complete our s case automation by using task so this is our lesson 9 where I'm gonna cover this Step 2 to create the steps using the modules that we created please do subscribe to the channel click on Bell icon you'll receive notification whenever I publish more videos thank you okay so our agenda item is create test tips so we need to populate your test case with the test steps so in the previous session we created test case folder structure right now for that particular test case folder structure we need to populate the test steps so how we can do that I'm gonna teach you in this session and we are going to use this standard subset that is dot TSU file provided by trisantis task with your task installation so I have already explained you how to install Tasker in my first session okay go through that session okay and while using these standard modules to perform common steering operations and our own created modules by using xcan that means we need to use the standard modules and also the modules that we created to create the test steps okay and then there are two ways to create the test steps in Tosca the first way is either you can drag and drop the module onto your test case or test case folder and the second method is you can use the function called ADD test tip at test case or test case folder level okay so now let's jump onto the system and see how can we create test steps by using Tasker okay so this is my Tasker 16 okay so in my previous session I have already showed you where we created test case structure okay so in this session now we are going to create test steps for your test case structure folder okay so in my previous session we have created this entire folder let me copy this folder copy and then paste this folder here and rename this folder as session 0 9 test steps creation okay so once you rename just minimize the previous folder and expand this folder so before I create test steps I just want to show you module creation okay so I have already showed you how to create module but for this session we are gonna create a basic module so that you will be able to understand how to create your modules to capture the controls your viewer system under test okay so as you all know my system under test is demo webshop trycentage.com Okay so I'm gonna create a small module where I'm gonna capture all the controls that are required to log it My Demo webshop okay so let me create quickly go to modules section go to webshop I've already created a small folder called customer okay and this is my subfolder so I'm gonna capture all the controls in this particular folder how to scan your system under test by right clicking on the module click on scan and click on application so as soon as you click on application it opens all the applications that are open your system in your system so this is the application that I would like to x-scan demo webshop and click on scan so now I would like to go back to my basic view so I have already explained you about this x-scan all the options that are available in xscan and how to perform x-scan in my previous sessions okay I would recommend you guys to go through that particular session so I would like to shift to my basic View and then I would like to capture all the elements that are actually required for login okay I'm gonna capture email click on this password remember me forgot password login button okay I captured all of them okay and then let's go to Advanced View and select this top filter you decrease the filter so that you can see only selected controls so you just need to drag to the left so that you can see only the controls that are selected and make sure that the naming Convention of your controls are proper so I can see everything is correct and rename this module as demo webshop demo webshop okay demo webshop demo webshop log in login page okay and once you rename this module also make sure that that make sure that the title of this page is parameterized I mean uh you you need to use regular expression as I explained you earlier this webshop right this URL the title of the page keeps on changing based on the page where you are okay so now I would like to use the regular expression so that this title works for all the pages what I'm doing I'm keeping star after demo webshop Okay click ok and now save the module and then close your xcan and now just go back to your module section and see the demo webshop login right so I have captured all the controls that are required for login okay in the same way I have already captured all the controls for different modules like and what is my product Choice tab right what product Choice tab is product categories like these actually all these product categories and these product categories a Precision shoes once I go to apparents and shoes blue jeans right I have captured all the controls in different modules okay these are all the webshop modules they are that I have already captured in the same manner how we captured login page okay so now let's go back to test cases so now we need to populate test steps under the test case structure folders right so first let's go to precondition let's populate test steps under precondition so to populate the steps you need to keep your modules aside so drag and drop to the right I have already showed you all these options okay and now your test case is here your test case okay once again you can see the test case here correct left side and your modules right side okay and now let me just drag and drop okay let's adjust this adjust this okay so for a login I have already create sorry for precondition what is my precondition I have to first enter the demo webshop URL correct so let's go to demo webshop URL so if you see under webshop oh sorry under standard modules under t-box engine under HTML I've already showed you so these standard modules are created by Tosca so that you can use these standard modules for any kind of application okay so under this I have a module I have a module called open URL drag this and drop here so the open URL I dragged and dropped here okay I'm not gonna populate any values for the test tips so we are going to populate the values in the next session for this session we are gonna create test steps for the test case structure okay so now next we dragged and dropped and let me also create post condition where I'm gonna close the browser right just drag this module and drop into post condition that's it close the browser now let's go to precondition again and once you open you are web browser what we need to do I need to navigate to login page from where see this is my top menu right click on login so that means I have to click on login for that I have another module so one more thing is either you can drag and drop from this way or let me just put the module back to the tabs and now there is another way under precondition I need to click on login right for this instead of dragging and dropping there is another way you can right click on this precondition and search and ADD test step okay this searches your modules what are the modules we saw here it shows here also or just click on Ctrl t Control Plus t Okay so that also opens your modules so okay so now navigate to login page right so for that I need a module called top menu so where I have stored all the controls of your top menu okay I have already created that let me just search on top menu so web shop top menu select this as soon as you select that step is created under this top menu I'm gonna click on login how you need to enter the values to perform or to steer the application that I am going to explain in the next session so we are going to just add the test tips but later we are gonna we are gonna populate the values okay and then once I click on login I need to oh sorry once he 1C select login correct once I select login now my next step is to basically I need to login page okay so I need a login page so just now we created a login page module right so let's go to precondition let's go to precondition so precondition is login opening URL clicking on login and then provide your credentials right so again place your cursor here Ctrl t just now we created login if you see demo webshop login page this is what the module we created just now that's it done once I log in now your process starts so let's now go to your process first you will be ordering your product how from the product Choice table right from the product let me log in okay here let me log in here okay oh sorry okay so once you log in from the product choice this is product choice I already created a module called Product Choice Tab and I stored all these controls all these links in that product Choice tab okay I'm gonna click on this appearance issue so that means I need to add a module called Product Choice tab go here under process what is my first order product go to order product here again place right click search add step product Choice product Choice step if you see here this is my module add this module okay and you can select the category product category from here actually which one apparents issue but we are not gonna populate the values in this session okay once that is done under order product again foreign product now once I click on this application Shoe Right I need to select the blue jeans correct so let's right click so basically we have to rename all these actually let me rename this okay see this webshop product Choice tab right better you need in this so that it will be meaningful you will understand what you are performing here okay here navigate to apparels and shoes so this module or this test step is to navigate to Apples and choose correct and then now you need to go to Blue Jeans you need to go to Blue Jeans navigate to Blue Jeans how and I have already added a module called Ctrl t and shoes if you see here apparels and shoes product selection Okay click on this and rename this as navigate to blue jeans okay so once that is done you need to order blue jeans right so for ordering the blue jeans I have a module called Blue Jeans see this is the module and rename this as order blue jeans okay that is done so this session will be a bit long a bit longer because we are going to complete entire end-to-end test case automation right step two of your automation okay once I order the blue jeans Now what is my next task my next task is start checkout so once I order blue jeans I need to start the checkout process correct order now you need to start the checkout process so go to start checkout under Start checkout you need to click on shopping cart that means you need to navigate to Star shopping cart again you need to call the top menu here right if you remember we already used the top menu earlier also okay so now Ctrl t top menu add this done so once that is done and again you will be clicking on basically you'll be navigating to so now let me just rename this as navigate to shopping cart so okay by using this module you will be navigating to shopping cart and then you need to start your shopping cart procedures right start shopping cart procedures okay Ctrl t you already have shopping cart module if you see shopping cart module okay just select that and rename this as shopping cart procedures shopping cart procedures so where I'm gonna go to shopping cart here I'll be I'm starting the shopping cart procedure which is this check this box and check out okay so once that is done shocking shopping cart procedures and now you need to provide your billing address shipping address shipping method payment methods so if you go here check out you need to now do billing address shipping address shipping method payment method and not product confirmation so now that is comes under checkout process okay here go to checkout process here I already added building all the controls related to billing I already added as a billing address okay Ctrl t billing so if you see billing address that is done and then under checkout process once you've done billing address let me rename this as billing address continue sorry billing address continue and then shipping address again Ctrl t I have already having a shipping address module sorry shipping address this one not shipping method shipping address right and rename this as shipping address continue okay that is done and then once you're done with your shipping address what is next procedure you are shipping method ground okay I will be selecting ground okay see continue and then shipping address sorry and then shipping method where I'm gonna select ground right so again Ctrl t shipping method shipping method right once shipping method is done so here what is the shipping method ground rename this shipping method ground one shipping method is entered you will be either entering your payment method so I'm gonna select the payment method as credit card okay so the for that control T I already created payment method module where I captured all the controls payment methods okay so let's rename this payment method credit card I'm going to select credit card okay once that is done and then you will be providing your payment information for the credit card right for that again Ctrl T here I need to use payment information module payment information module if you see this is my payment information credit card so now here let me rename this as payment information credit card okay I'm just renaming this payment information credit card okay I'm just expanding so once that is done under checkout process you need to I think that is it once you provide the payment information click on continue sorry this is your payment information right and then confirmation order that means I'm gonna shift to verification of prices okay so verification of prices under verification of prices for now so let me just right click so verification of prices under verification okay right sorry right click a verification of prices I'm gonna leave empty for now because I'm gonna cover this verification of prices in future sessions okay where we will be validating all the prices okay for now I just I'm gonna ignore this for now okay here confirmation order if you go to confirmation here I already have confirmation order confirm order and I'm gonna confirm the order here okay how clicking on confirm so that it the order gets confirmed okay and then once you click on confirm order what is our next procedure verification of success so under verification of success verification of success you need to add order successful okay Ctrl t order successful so that means once you click on confirm the order successful will come okay all the controls related to that successful page I stored in this module okay so once that is done now what is the next next one oh let me rename this okay let me rename this saying that confirm okay verification of success right verify verify the order success so let also rename this one also the previous one I think we forgot to rename this Ctrl a what we are doing confirm the order we are going to click on confirm button right once the verification of success is done what is our next step next step is post condition under post condition we already add a closed browser but here I'm not going to close the browser I'm gonna click on continue first correct so for that I need to add another module called order successful let's call this order successful again Ctrl t order successful where I captured all these see I'm gonna click on continue so this one you need to rearrange the order before I close I'm going to click on continue that's why drag and drop to the top once I click on continue I need to log out correct so for that again top menu what we are going to do we are going to call the top menu Ctrl t top menu drag this and drop here see here I'm gonna log out click on logout and then close your browser correct so that's what we are gonna do correct and then log out close your browser so now if you see let's go to the test steps that we have populated here how you can see right if you want to expand you need to expand right click and expand all okay okay right click and expand all so it's going to expand all your test steps right so we populated test steps if you see open URL and then here rename this also actually let me rename this navigate to login page okay open URL navigate to login page and login once again login with credentials you're gonna log in with credentials and then navigate to operant shoes and then navigate to Blue Jeans order the blue jeans and then you are going to navigate to your shopping cart and you're gonna start the shopping cart procedures you want to enter billing address and click on continue shipping address click on continue payment method credit card payment information right so now your steps are in sequence right all your steps are sequence so we are almost near to complete our test case automation so once you enter all your test steps once you create all your test steps by using modules the next step is to populate the values for each test step that is required that's it so once you populate the values your test case automation is done okay so in my next session I'm gonna teach you how can we populate the test case values in your test steps and then there are some configurations that we are going to perform test configurations okay and we'll be completing our test case end-to-end automation okay so if you have any queries leave your comments in the comment box I'll try to respond to your queries it's really very very important sessions Guys these three sessions my previous session today's session and my next session so these three sessions talks about automating your end-to-end use Case by using task or latest version okay stay tuned hope you all understand the concept of creation of the test steps for your test cases okay so in the upcoming session we are gonna complete test case automation fully okay this is our lesson 10 in this session I'm gonna cover how can we populate desktop values of your test cases so if you remember in my previous two sessions I have started creating tutorials on test case automation so in test case automation that means to automate your test cases by using price and testoster there are sequence of steps that we need to follow so in my previous two sessions I have explained you step one where we created test case folder structure and also I have explained you Step 2 where we have created steps for your test case folder structure so in this session lesson 10 I'm gonna teach you how to populate the values for your test cases please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay so as I explained you we already created test steps now we need to populate tested values so how to populate desktop values in latest version Tasker 16 I'm gonna teach you so populate your test steps with values in order to instruct Tasker to see here the system under test accordingly and then we are going to use some basic values to populate the steps and the basic data types I'm not going to cover all the data types in this session only Limited Basic data type I'm going to cover and then testup values can be seen entered or modified from test case section of your tricent is task that I am gonna show you and also I'm going to teach you how can to view them to view the test step values you just need to expand the test steps so that you can see the test step values so the expand all option can be used on test tips level alt or desktop folder level or test case level okay so now let's jump onto the system and see how can we populate desktop values so that our test case automation is almost complete Okay so this session session nine we have entered or we have created test steps for your test case structure under precondition we added almost like three steps under process for all the subfolders we added all our test steps by using modules okay it's very important for you guys to visit my previous session continue with this particular session okay lesson 10. so now so let's populate the values as I explained you in the slide okay first so let's go one by one okay in precondition first we will be opening the URL correct so this is this is the test step that we added opening the URL if you see under open URL module you have a URL correct so here you need to enter the URL and see the demo webshop URL okay copy this demo webshop URL and paste here okay so this is my demo webshop URL correct and as soon as you paste the URL your action mode will be turning to input so in this session most of the times we are going to use the action more called input and rest of the action modes I am going to cover in the next session okay and also you will have a data type so I'm not going to see the date different you have a different data types called Date numeric string all these things so for this session will stick to the string data type okay so this is my string data type I am entering the URL once you enter the URL so let's go to URL you will be clicking on login correct so that is where we have here okay this is my top menu under top menu I captured all these controls so this is my login control correct so to click on login so there are two methods either you can just enter cross as soon as you enter cross the input action mode input will be populated automatically this clicks what happens Tasker will steer your system under an application it is going to click on login link or you can leave this blank also and then this input will click on this but it is recommended to enter some value so that it is easy for you to recognize that you are performing some action for this particular link I mean for this particular control okay it is recommended okay that is one thing and once you click on login you are gonna enter the credentials correct so that is my next step you're gonna enter your email address so this is my email edit box control enter your email and then you need to enter your password okay as soon as you enter the password this input if you see all the action modes are converting to input okay and then you'll be clicking on login so again here this is your button you just need to enter X so that it clicks on login button that's it so our precondition entering the values to your precondition steps are done and now go to process for the process so once you let me log in so that it is easy for you to understand okay okay let me copy this email address I think we entered the wrong email ID let me see let's go back to email ID and correct our email ID okay email address let me correct my email address okay done so now so once you click here what we are gonna do you need to navigate to operation shoe from the category so here from product categories select apparels and shoes done so once you navigate to a prince shoes apparel shoes here you need to select your blue jeans right once you select the blue jeans for this year navigate to Blue Jeans so this is my link just I'm gonna enter X that will click on that link and then you need to provide your quantity and click on add to cart s right Order Blue Jeans provide the quantity let's say 10. and click on add to cart button enter X done so I'm populating the test step values okay it is very important these values will steer your application accordingly okay so let's entertain click on add to cart and as part of start checkout process you need to click on shopping cart this is my shopping cart right so that's why I'm going to enter X here done so let's do the same thing here click on shopping cart once you go to shopping cart here you need to agree to the terms and then check out click on checkout so that's what I'm gonna do here terms of your service is true you need to check the check box so that's why you need to select true and then click on checkout button correct so that is done and then your checkout process begins what you need to enter billing address and just you need to click on continue because the billing address is already configured click on continue so that means here billing address X that's going to click on continue button and then you need to select in-store pickup here let me oh no sorry I think I just need to click on continue so I don't want to do in install pickup just I can continue click on continue so let me enter click on continue that means X so once you click on continue the shipping method I need to select ground so for that shipping method here if you see ground shipping method and then click on continue so that means again against continue control just enter X and then your payment method comes into picture the payment method is credit card payment method correct credit card I want to select credit card right so for that payment method select credit card and then click on continue enter X so then you will be providing your payment information sorry credit card information select Visa so that means your Select Credit Card my credit card type is Visa and credit card holder name so I have all my credit card details here copy and then what is your credit card number this is my credit card number and then what is your expiration date 0 4 2021 and then your code is one two three card code is one two three and then you will be clicking on continue it's correct let me copy let me do this here as well your credit card number enter and then 0 4 2021 0 4 2021 oh let's skip 2023 and one two three click on continue so so let's enter 2023 here okay okay so you will be clicking on continue okay once you click on continue you need to verify the prices all the prices are correct or not so that we are not going to do in this session okay after that I need to confirm the order so that means here you will be clicking on confirm button correct so just X against the control confirm button and then verify success I'm not going to do verification of the success here okay for this session we are just we are not doing any verification part so that we are gonna do in the next session and then you are gonna click on continue so here under post condition under post condition see click on continue button once you click on continue button you're gonna log out correct and then so that means I need to enter X opposite to logout and then you are going to close the browser foreign title it's demo I can put as a demo star right this is my browser title and then this is my I can select okay I can just keep on select put as a select okay because this is not my input actually it's just closing the browser the title of demo star so that is done so now if you see we already populated all the values so if you want to filter all the values that have I mean sorry if you want to filter all the steps that has only values you just need to click on F9 okay so if you click on F9 it shows you the steps that has a value see simple showing you again if you click on F9 it again shows all the steps okay all the controls that does not have values and that does have values let me put as F9 see done so that means now we entered all the values so now we'll see we can execute this particular test case and see how it works okay so I'm not gonna uh okay so for this session just we will execute okay it might throw errors it might not throw errors okay we are not going to debug anything we'll make sure that whatever the values we entered it works okay but before you run actually you need to configure uh you need to configure your browser okay but however so I'm gonna teach you how to run your test case and how to configure your browsers in my next session okay so we have completed automating everything so we completed automating this end to end scenario by this session but in the next session I'm gonna run this test case automated test case by using some test configurations okay hope you all understand the concept if you have any queries please provide your comments in the comment box I'll try to respond to your queries thank you hope you all understand the concept of our step three of your test case automation where we populate test step values for your test cases so as you all know to automate test cases by using Tasker we need to follow a series of steps so in my previous three lessons have covered step one step two and step three step one where we have created test case structure Step 2 where we have created test steps for your test case structure and step 3 where we have populated the values for the test steps now this is our fourth step and last step where we will be running our first automated test by using Tasker please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay run your first automated test so before we run your first automated test we need to do some configurations that is called test configuration parameters in tricent is Tasker world what is this TCP test configuration parameter this is a parameter you can set for the Tasker object example test case should run on a specific browser then you can specify a TCP of browser if you want to run the test in different releases then you can provide the configuration of release number if you want to run in the various test environments you can set up test configuration parameters and if you want to have a different connection identifiers in different environments and then you can configure different URLs so basically this simplifies maintenance of your tests and avoids the repetitions and how to populate so basically the populate specific test case with test configuration parameter so populate different levels basically TCP our test configuration parameter can be populated at different levels like test case level test case folder level and at execution less list level if assume if you provide a test case configuration at this case level and some different test case configuration at execution list level so execution list I did not cover but just assume that there is an execution list where you provided configuration as a different value and in test case you provided a configuration as one value so both are different then if when you run test Case by using execution list then the test configuration parameter whatever you specified in execution list will override the TCP that you specified in test case and then I'm gonna teach you how to run automated tests in scratchbook okay so let me let's jump onto the system and show you how can you perform all these activities by using latest Tasker 16 version okay so this is my Tasker 16. in my previous session uh 10 right Session 9 and 10 we have created a separate folder and then we have populated test steps under your test case structure and also we have populated all the values for your test steps correct so now let's use the same folder okay let's copy this folder right click and click on copy and paste in to your parent folder and then rename this as session 10 sorry session 11 run automated this okay and now so this is my test case correct so earlier we already right click and expand we already populated all the test types and all the test values in my previous sessions now it is time for us to run the test so before you run the test as I explained you in my previous slide you need to perform some test configuration so if you want to run this test in Chrome you need to provide test configuration parameter called browser and provide the browser name for that so you need to click on your test case so as I told you you can specify your test configuration parameters at test case level folder level and at desktop level okay so right now I am at test case level go to test configuration right click on your test case if you see here there is a menu called create test configuration parameter select that and here you need to select parameter called browser and then you need to select the browser name that you would like to run on so now for today's session I would like to run this is run your test in Chrome browser select that done now go back to details now I want to run this particular test case Okay this entire test case there are two ways either you can run your test from your details tab right so basically we are gonna run the test in scratchbook so as I told you scratchbook is a temporary test runs your trial runs can be performed on scratchbook so that you can debug your automated scripts very easily okay and the scratch book will give you who the temporary results which will not be saved in the system okay so now let's say I want to run this entire test so now let's run our test right click and click on run in scratchbook as soon as you click on run in scratchbook it's going to open your web browser and it enters the URL and it gonna execute every step that we specified clicked on login click on apprent shows it's going to click on Blue Jeans and then it's going to enter the quantity and then click on ADD card right and then check out so it enters all the payment billing information shipping method and everything okay let's continue entering okay it's done it is now entering the credit card details and then checked out confirm click on continue log out and then close the browser so if you see it gives you a temporary result so that you can analyze the results if all the results are successful or not if you see here these are all the if you see everything is Right marked in green color that means every step whatever we automated is pass correct so this is one way so how to debug your test case so if I want to run let's assume I just automated precondition if I want to run only these three steps what should I do you have to select the steps that you would like to run by using shift button okay I selected this right click and run in scratch so it's going to run only these three steps so now let's see that means it just performs your login that's it if you see it gives you the results see only login so that is one way of running and another way of running the test cases so you can use your existing scratch book if you see on top ribbon the reason option called scratchbook right and keep this scratch book and let's say I want to run uh probably let's assume I want to run these steps okay okay let's log in and keep it ready okay let for me for this I'm going to log in and keep it ready so now I want to run from here you just need to drag and drop okay let me just close okay open your scratchbook sorry okay let me again so open your existing scratch book and you need to just drag and drop the steps okay let me clear entries let me clear entries now what you can do is so let me just open this scratch book take the scratch book to the right of your pane right now let's say I want to run these three two three steps drag and drop these three steps here to the existing scratchbook and then right click and run so that means I'm using my ex existing scratchbook and then I am running the test correct so that way you can perform your tests I mean trial runs by using scratchbook okay so it's so earlier actually what happened actually there are two tabs that are open that's why it's got failed let me run it again okay so it opens the browser it clicks on login and then it enters your username and password that's it so so this way if you see this is the all subscribe passed and then again you can close your scratchbook okay so this way you can basically use from let's say I want to run from here right you can directly select this checkout process for example you can directly select this checkout process and run scratch run in scratchbook that means it's going to run only these steps steps that are involved in check on process folder so you can run at folder level you can run at the step level or you can run at entire test case level also okay so hope you all understand how to run your test in scratchbook and how to analyze the temporary test results and how can you configure your test configuration parameters for a specific test case so if you have any queries please provide your comments in the comment box I'll try to respond to your queries thank you hope you all understand the concepts of test configuration parameters in price and distrustca and how can you run your first automated test by using present testoster in scratchbook so this is our lesson 12 where I'm gonna teach you about the action modes that are available in tricentistoska 16. and also I'm gonna teach you setting up action modes like weight on verify and select action modes by automating some of the test cases related to webshop please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay so what is our agent item so the action modes are to tell Tasca what to do with test step value to enter or to steal a particular control so basically we are setting up action modes to tell Tasker what to do with the tester values that we entered in a test step to steer a particular control so if you remember in my previous videos we already covered creation of test tips and then providing the test of values for the test tips right so what you have to do with those stepped up values that we are going to Define in action modes and you can select these action modes within test case section in the column action mode I'm gonna show you shortly how can we set up these action modes and then there are different action modes like input insert buffer constraint select verify and wait on these are all the different action modes that are available in task so input is a default action mode that is provided by the task that means default transfer values to a test object so in my previous sessions right click on a particular control or to enter the text in edit box we used a action Mode called input so that's a default action mode that transverse values to test object okay and then there are another uh there is another action Mode called insert so insert is actually used for non-ui related test cases so I'm not going to cover this action mode and then buffer and constraint yes these we are going to use in price and this Tasker for the UI automation but I'm gonna teach you in the upcoming sessions so for this session we are going to focus on the action modes called select verify and weight on okay so now let's deep dive into select verify and wait on okay what is action mode select so this is a passive action mode used to navigate tables and drop down menus and select table you want to focus on so basically when you are using an action Mode called select that is to use that is to select a table or selected drop down but not to perform or but not to send any any values to the control it is to just select a table or a drop down menu okay and but if you want to input or retrieve some data from particular table then you need to use action Mode called input but not select okay you understand right so let's say if you want to input there is an edit box or there is a value within the table if you want to retrieve or if you want to verify that particular value you need to input you need to use the action Mode called input but not the select select is used to just select the table and then perform some other operations within the table or retrieve some values within the table right but you will be selecting the table or you'll be selecting corresponding column and then you perform some other actions okay so that's select action mode and verify action mode this is used to check the values are the controls right for every test case we need to have a verification so first of all verify means what so when you are automating a test case you need to have some verification points right so to this we will be using this verify to check some values or to check the controls that are required okay and waiter so weight on is used to perform Dynamic weight instead of static weight so when you use a static weight like 10 seconds 20 seconds 30 seconds it's hard coded values right so we need to avoid using hard-coded values you need to use a static weight that means let's say I want to wait until these elements are loaded on the page I want to wait until this message appears on the screen so then you need to use weight on okay this is very important wait on action mode to improve your test case automation okay so all these action modes are very very important to simplify your test cases while automating your scripts okay so now let's jump onto the system and see how can we use all the Jack all these action modes by automating some test cases okay let's jump out of the system okay so this is my Tosca 16 latest version right so as part of this session our agenda item is first let me cover select and verify action modes how can we use these select and verify action modes while automating your test cases so if you remember in my previous four sessions we have completed completed automating entire end to end test case right so let me copy the same folder here let me copy the same test case and then paste it into a parent folder okay so once you paste it let's rename this test case as session 12 action modes okay okay so right click so when you click on this shopping cart shopping costs right click and expand all I already explained you all these Concepts okay so here so earlier when we automated the entire test case one of the section we left blank which one so under process under process there is a section called verification of prices we haven't done that one okay let me just minimize all of those so we completed order product we completed start checkout we also completed checkout process and then confirmation page and verification of success and verification of prices these two we haven't done right we have not verified anything so in this session let us verify the prices of your order if the price of the order is correct or not and also let us verify once you click on confirm the order the confirmation message okay so let's go back to our demo webshop let me log in [Music] okay let's go to apparels and choose order the genes go to shopping cart and here agree to the terms check out these are all we automated already and then continue we automated this as well continue continue and payment method continue and then payment information so here once you before you confirm the order you need to verify the price that is getting displayed for your order correct so let's take one thing so let us validate if I select shipping ground shipping method has ground then the cost for shipping ground is ten dollars so I need to verify if ten dollars is getting added to my total cost correct so for shipping ground whether it is displaying ten dollars or not that's what we are gonna validate okay for that verification of price is let's double click on this vacation of prices here let me add a module control C I already explained you so it's very much recommended to visit my previous four videos where I have automated the entire test case end to end okay so here Ctrl T that brings up your modules and I want to add a module called webshop confirm order okay so what does this confirm order contains so let me just rename this as verify the prices okay I need not to rename this actually we already Renee uh named this folder verification of prices okay so here this we have captured all the controls that are required for this confirmation order all these controls we included this table and everything this button okay if you see all these prices right this is actually a inbuilt table web table this is HTML table okay so this table can be steered by Tasker if you see here cart total so this is one of the table right so card total is one table this is this entire price is actually resides under a table okay so the same control has been added the entire table has been added okay and if you expand this right column if you see this is my first column that has all the titles of the prices and in the second column I got the cost of those subcategories right these are actually two columns First Column second column okay the prices are under second column right so that's why go to column you have a row and column and under column you need to specify this as a hash that means I am asking or I am instructing task car to select column two and click enter so as soon as you click enter if you see select Isaac told you select passive action mode used to navigate tables and drop down menus select table you want to focus on that means I want to focus on card total table that's why the action mode is Select here okay and then I want to select the column 2. so that I can retrieve some values or I can verify the values okay so that's why column 2 has been selected and then under column 2 I want to verify shipping shipping cost so here pick up your shipping cost here if you see subtotal shipping payment see subtotal shipping payment method tax total right anything you want you can verify so I want to pick up shipping okay and if you see if you see the action mode you need to select as verify because I want to verify if the shipping cost is how much 10 dollar or not and here you need to specify the value you need to specify the value 10 dot zero zero specify the value of 10 0 0 and I am instructing Tasker to verify if shipping cost shipping cost of column 2 has a ten dollar or not okay so now see if you I need not to run this entire I need not to run this entire test case I can simply run the section that I want to verify okay let me do that okay I want to show you how you really you can debug by using scratchbook okay here I already opened the page of this if I run this only this step verification of the prices it's going to verify this shipping cost right click run in scratchbook because I need not to run everything again it I am just running that particular step to make sure whatever I automated is correct or not if you see here I got the results if you see this is successful that means the shipping cost has been verified successfully correct if you double click here if you see the expected value is 10 and the actual value of shipping cost also 10 that means this is success so here we covered action mode select and verify you understand what is the difference of Select right select is to steer the tables but it is not to input the values it is just to select the table so that I can input r i can verifying the corresponding rows or column values okay and let me also go one more thing verify verification of success here also see once I click on confirm I verified the values cost now I want to verify successful message right and this is what I am doing here okay here verify again that means I need to select here this message message order successful message is visible or not right once I reach here click on confirm I need to see if this visible or not okay for that expand what is the property I want to see the property of visible property that control is visible or not and your operator is equal here true right and here I need to select action mode as verify I want to verify if this message is visible on screen or not correct so now again let's run this only step let's run this step and see if it is gonna successful so it is verifying the message yes it got successful I can see the green Mark here and if you see here verification was success see verification was successful expected value is true that is visible true and actual also true that means the message is on screen okay so this is how you can use verify and select action modes okay it's really really important when you are actually for any test case right for any test case when you are automating you have to verify something without verification the test case is not a meaningful okay and what is next agenda next is weight on so when do we use beta so I already explained you it's a dynamic weight basically see when you introduce a static weight then it's gonna take a lot of time so basically it's gonna uh you're gonna waste the time even though your control or your text is visible it waits for the time that you specify when you specify the static weight but for dynamic weight it's really useful if application is slow it waits for the control to be visible if the control is visible immediately it goes to the next step right so for that let's go to post condition under post condition what we are doing I am clicking on continue here I'm clicking on continue once the order is completed and then I'm gonna click on logout right so I'm clicking on logout let's see here I'm clicking on continue and then I'm clicking log out but before I close the browser I want to make sure that the logout is successful or not for that what you need to do once you click on logout you should see login on top menu right log out see login should be visible so I am I'm gonna instruct task car to wait until the login link is visible once I click on logout what I need to do for that let me introduce let me control T I want to insert one more step here top menu step okay webshop top menu because that login link available in top menu okay done and now just drag and drop step here and rename this as wait until login appear okay so what I am doing here as soon as I click on sorry not here so this step should be below this as soon as I click on log out you need to wait until login link appears log out and then wait until here so here login I need to select login visible equal to true equal to True here I need to specify weight on that means you I'm instructing task or hard to wait until this login link is visible right so now let's run this entire test case and see whatever we automated till now including price verification message verification successful message verification and wait until the application is log out right everything so let's close this let's close this and right click and run in scratchbook okay it's going to open the webshop click on login apprentice and shoe blue jeans it enters 10 add to cart agree checkout building information shipping and everything and at the end it's gonna validate the shipping cost yes it is validating shipping cost done it is violating successful proceeding log out wait until login close so that means let's see everything is passed because I can see green color here so let's see here see everything is passed it waited until login appears right weight was successful expected is true this is true then only it went to close the browser right so hope you all understand the concepts of action modes how helpful these action modes are while automating your test cases in my previous session I've covered the action modes select verify and then wait on okay so I would recommend you guys to please go through my previous session before watch this session so that you can understand the concepts very well and this is our lesson 13 where I'm gonna teach you the action mode buffer how can we use the action mode buffer while automating your test cases and then how can you use the math function while automating your test cases so math functions and action mode buffer are very very important Concepts while performing some verification as part of your test case automation and also I'm gonna teach you Dynamic expressions like Dynamic text Dynamic numbers and the dynamic dates how can you use Dynamic text how can you use the dynamic numbers and the dynamic dates while automating your test cases and provide your test data Dynamic test data instead of static test data as an input to your test case Okay so these are all really very very important Concepts to automate your test cases and to make it very easy to automate your business cases okay please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos stay tuned and let's jump on to the next slides okay so what is our first agenda item so our first agent item is action mode buffer so to use action mode buffer while automating the test so I'm gonna teach you how to use action mode buffer while automating your test cases so any test case when you automate any kind of test case it is very important part of testing is to save and reuse the values that the Sut has provided you so this makes verification flexible right so if you if you are able to save some values retrieve from your system under test or retrieve from your application and if you are able to save them in one of the variables as a buffer so that you can reuse them while verification part instead of using any hard-coded data save generated values by using buffer so this makes your verification very flexible what is the syntax you can see on screen the syntax of buffer is open curly braces capital B and your and then Square braces open and your buffer name correct and then close your Square braces and then close your curly braces so this is the syntax to use buffer anyway I'm gonna show you practically by using Tasker in next slides okay and then we should use this buffer only be created and used in the same test case so when you are creating buffer you should be able to create in one of the test case and you should be able to use in the same test case you cannot use buffer in different test cases so to use shared test data you have a separate concept called test data so you can visit my long back videos related to test design dock test design Tasker test Design Concepts so you can visit those particular videos in the playlist okay and you can find the links in my description okay so now and what is our next agenda item let's go to the next agent item okay so our next agenda item is dynamic expressions how can you use Dynamic Expressions while automating your test cases by using latest version of Tasker 16. so I'm going to teach you how to use math functions and then how can you use Dynamic text or how can you generate Dynamic text and then use it as a test data while automating your test cases and how can you generate random or dynamic random values while automating your test cases and then how can you generate Dynamic date while automating your test cases so I'm gonna teach you with examples while automating one of our test case so now let's jump onto the system and see how can we use all these Concepts practically by using Tasker 16. okay so this is my Tasker 16. uh if you remember so in my previous session we have covered action modes right for that we have created this folder and the entire test case and I explained you about the action modes verify select and wait on okay so I'm going to copy the same folder here copy and let's duplicate the folder in the parent fold parent folder okay so I'm duplicating the um work as of now but going forward we are going to use the reusable functions okay but yeah for this session let me rename this folder as session 13 first let's let me cover buffer and math function okay okay so if you see e the agenda item right if you see the agent does first we need to cover the action mode buffer and I'm gonna cover even math function along with the buffer okay so here let's expand this let's expand let's go to process under process order product okay under order product blue jeans when you are actually ordering the blue jeans let's go to operations and choose and go to Blue Jeans here we are specifying the quantity and the price I mean it shows the price and where you are specifying the quantity as 25 and add to code right so here I want to capture the price of Blue Jeans so that I can verify the price of my blue jeans during checkout process okay so now for one blue jeans this is the price now when I when I am checking out 25 blue jeans right I want to verify the price so that's why I'm gonna store the price of blue jeans into a buffer okay so if you see this is my price container right I already captured all the controls if you see this is my price container and this is my quantity edit box this is my add to cart button right so for this price I want to capture the inner text so if you go here simple see when you want to capture the inner text go to this Arrow mark go to property click on inner text operator equal to here specify the buffer variable name price blue jeans price blue jeans this is what the variable or the buffer I want to store okay and once you've done this see I specify this here I need to use action mode as buffer as soon as I select this this equal will turn into Arrow mark that means the inner text is stored under the variable call or under the buffer called price blue jeans okay that's done now save this and now one says to the price of this blue jeans let's go to your shopping cart and let's check out these 25 Blue Jean says continue continue okay here before I confirm the order I want to verify all these items whether the price is correct or not I want to verify the subtotal of subtotal I want to verify if subtotal Plus uh shipping ground these two hours I want to verify subtotal and the total along with the shipping shipping cost okay so here let's go to for that let's go to one of the folder called verification of prices here in my previous session I have already showed you verifying the shipping cost whatever the shipping cost is ten dollars right so I would recommend you guys to visit my previous session to see the action modes verify select and then wait on okay so we already verified the shipping ground cost as ten dollars so now I want to verify the subtotal go to subtotal what is my subtotal my subtotal is now he here you need to use the math function what is my subtotal my subtotal is price of each one genes multiplied by the quantity of the genes correct so that becomes my subtotal okay so for that we need to use the math function okay math function curly blazes it starts with curly braces so as soon as I enter math it is showing me the math function okay and then open braces square bracket and again the buffer function you need to specify under B I already explained you in my previous slides right curly braces B Square braces here you need to call the buffer the where we store the price right price blue jeans we already stored so if you see it is automatically populating my buffer variable that I stored in my previous module correct so call that buffer price blue jeans so let's price blue jeans and then close Square braces and then you need to close your curly braces multiplied by Supply price of the blue jeans multiplied by the quantity what is the quantity that we are taking it's 25 quantity right and then make sure that you close all the braces okay so if you see if the formula is correct it automatically converts into math blue jeans which is sorry here yeah math blue jeans buffer multiplied by quantity which is 25 if you see he go back to by quantity okay let me go back to start checkout process if you see here so okay order product okay if you see here I'm actually adding quantity of 25 so that's the reason I entered 25 okay so that is how you can use math function and the buffer function and also I want to verify the subtotal okay what is the uh sorry what is my subtotal correct so if you see here my subtotal again the total sorry the total if you see the total total is the ground shipping method and your subtotal correct so now let's go here let's first store my subtotal what is my stop total is this let me store the subtotal into a buffer again okay sub total okay let me store sub total into a buffer here you need to store into buffer okay so here again the verification part I have to convert into numeric okay I have to make sure it's a numeric so now what I am doing again subtotal I am storing into buffer and now what is my total my total e is my total is again math function my total is subtotal plus my shipping cost correct subtotal my plus shipping cost so here again math function math okay math open Square braces open curly braces buffer again open Square braces here I need to call subtotal right the buffer which I stored in the strip my subtotal plus 10 correct subtotal close braces place my shipping cost here shipping cost okay close all the braces so this is my total I am verifying if the total is equivalent to my subtotal plus shipping cost of 10. okay here I'm already storing subtotal into a buffer okay so now let's run this run this total test case okay let me log out and see if it works okay close let's go to shopping cart right click and run in scratchbook okay on scratchbook so it's going to open the webshop click on login it enters username password choose and then it should click on Blue Jeans now it enters correct and it's gonna check out then click on continue continue so now at the confirmation page it should basically verify the prices if you see 25 25 plus 10 35 that's correct so successful the execution should be successful perfect I think a small there is a small discrepancy let's see what is the discrepancy okay so now if you see here car total total yeah this one totally failed because okay basically what we did the expected is 35 and actually is 35e here let's go back to verify prices sorry verification of the prices and here let me convert into numeric okay that we missed so if you convert into numeric it's gonna run successfully and then all the results will be passed okay let me run one more time it opens webshop login email address and shoes blue jeans enters the quantity done I agree check out so now the verification of two things one is we are verifying shipping cost by using verify sorry ground shipping cost and then we are using math function to add ground versus subtotal right and then we are verifying total amount so now the result should be successful perfect if you see everything is green at the bottom so that means all the results are success see here let's go back to verify prices okay verification of prices shipping method shipping method confirm order verify order successful let's see confirm order okay here so here verification of prices if you see first one is we verified just shipping cost is 10 10 by using verify function and here we used buffer method okay subtotal is the price of your blue jeans where we added the price of blue jeans into a buffer called price blue jeans and then that multiplied by the quantity so now that is equal to your subtotal that is displaying on screen and then we stored this subtotal into a buffer and we are calculating total by using again math function subtotal plus your shipping cost right now successfully expected is 35 actually is 35 okay hope you understand our first two concepts buffer and math function now let's see Dynamic text and random values how can we use these dynamic dynamic text and random values okay and dynamic date okay now for that let's copy this again let's copy this session 13 copy this entire folder and paste it into your parent folder and modify the name let's modify the name of this folder as session 13 here dynamic values and Dynamic text numbers dates okay done once you modify the name now let's go to your process and then checkout process under checkout process I want to go for a payment information credit card okay here so let's do one thing this time I want to instead of using the card holder name constant Barbara Gordon instead of the static value I want to generate a random text okay a random text how can we Generate random text that's what I'm gonna show here okay here let's use the function called random text random text if you see here this is my random text my random text and what is how much random text I want to use I want to use the random text of 10th what it means it actually generates a random text with a length of 10. random text with the length of 10. okay to validate these formulas right earlier also I thought of let me explain that see whatever the math functions you wrote here if you want to validate if the function is correct or not right click and you need to run you need to translate the value translate value see if you see okay the value is translated to 25 that means the formula is correct here again translate value 35 that's correct in the same way here random text you can basically translate the value see it generating the random text of 10 right and then let's do random value so if you see the credit card whatever the credit card that we are providing here you can basically provide a random value okay how let's say here the card code I want to generate a random value for that you can use RND okay Curly braces R and D this is my function R and D and how I want to generate the values from 100 to 999 so what it will do it generates a random value between 100 and 999. okay this is how you can generate the random value let's validate this translate value see it is generating 652 random value and then now instead of let's use random dates okay here instead of providing month hard-coded value of April I want to generate the date how let's create a date function date and here I want to use a date function where the date is plus four months that means it's got a generate a date which is four months from now okay it's going to generate a month sorry it's going to generate a month four months from from now okay what is the format I want to print in the format of mm and close braces okay so here what it will do current date plus four months so that means and it generates in the form of zero four zero five zero six let's say now it's a January that means it's gonna go for May right let's say it is February then it's going to go for March April May June okay so basically I am actually generating the date dynamically I am not hard coding the date now how can I generate year instead of 2023 I want to generate the year dynamically again the date function date this time instead of month I need to use year let's say I want to use the year three years from now okay three years from now in the form of YY in the form of YY okay so let's close the braces so if you see here what does this function do it takes the year three years from now additional three years from now in the form of YY okay so now let's save all this and see how these random all Dynamic values whatever we provided here right Dynamic text Dynamic random values Dynamic date okay how does these translates into application let's run this test okay let's run this test right click run in scratchbook so now it opens your webshop especially we need to concentrate on your credit card information that when when we are entering okay is it gonna generate the random values successfully or not okay done perfect so if you see when it comes to payment information now it creates yeah if you see here now card holder name is different right you can see the card holder name is different and everything is different let's go and verify the results okay so if you see the results here if you see the results here under payment information okay it actually generated all these card code and all these things I think hope you all see hope you all understand how to generate the dates and all right random dates Dynamic dates Dynamic text dynamic values okay so this way instead of using your hard-coded values you can generate some Dynamic values okay hope you all understand the concepts if you have any queries leave your queries in the comment box I'll try to respond to your queries thank you hope you all understand the concepts of how to use the action mode buffer and then how can we use different kind of dynamic Expressions while automating your test cases by using present testoster 16. this is our 14th lesson where I'm gonna teach you how can we use libraries and reusable test blocks while automating your test cases by using latest version try sentence Tasker 16. I would recommend you guys to please visit my previous videos before you watch this session which will be helpful for you to understand the concepts better way please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay so what is our agenda item so libraries and reusable tester blocks so what is Library so in Tasker library is called as test clip Library test step Library okay so why do we need these test step libraries see when you are automating or when you are executing multiple test cases there will be lot of steps or series of steps sequence of steps that you will be reusing while automating your test cases so let's assume in our previous session we automated the shopping cost shopping cart right where we validated all the prices including total price of your order but in that particular test case we have used credit card as a payment method what if I want to use a payment method as check or money order what happens your total cost will be changed because there will be additional payment method fee that will be applied so that means whatever the test case that you automated earlier has to be modified but there are a lot of steps that are same logging in is same and then order blue jeans is same checkout process is same but while checking out you are changing the payment method and while verifying the prices you need to verify some additional fees so there are two steps that is that are changing but rest all same so in that case you need not to recreate entire test case or you need not to automate entire test case you just need to create Library where you can store reusable steps and the benefit is that whenever you want to use or reuse those reusable steps you can simply drag and drop into the your test case and what is reusable tester block the steps inside the Library are called reusable test step blocks so these steps can be reused throughout multiple test cases once you identify reusable tested blocks and drag and drop them into Library you can reuse them throughout multiple test cases and libraries can contain any number of reusable test blocks okay so I'm gonna teach you how to create libraries and how to reuse these tester blogs shortly by using Tasker okay so what I am going to teach you I'm gonna teach you creation of a new test case using reusable tester blocks and we are going to automate the new test case with these reusable tester blocks and also I'm going to teach you how to modify a reusable test block reference using resolve reference method so whenever you want to modify your reusable test block you cannot simply modify because if you modify the reusable test block it is going to modify all the test cases that's why you need to resolve the reference and then do modification so now let's jump onto the system and see how can we automate a new test Case by using library and then by using reusable tester blocks okay so this is my Tosca uh 16. so before we discuss about libraries and reusable test blogs and before we use these concepts by automating one of the test case let's understand what is the test case that we automated in our previous session so if you remember in my previous session what we did we have validated the shipping cost how see we logged into our webshop demo webshop and then went to appearance and shoes and then click on blue jeans and here we added the quantity of 25 correct and we added to cart go to shopping cart agree to the terms click on checkout and here in checkout process we entered billing address shipping address we selected shipping method as ground and here payment method we selected as a credit card so now let's assume if I want to automate the test case where I need to use the payment method as check our money order instead of credit card I select check on my check our money order right so earlier we selected credit card click dot continue and then you provide your credit card name right you provide your credit so the credit card holder name and card number and the expiration date and click on continue right so here any card number that okay let's let's click on let's go to card number okay let's provide the card number also to understand properly okay checkout process and here we provided credit card number so basically the credit card information we provided let's take the credit card number here okay we provide the credit card number here and then provide your code and click on continue so when you click on continue here the charges whatever it is displaying it is based on credit card what if I select the payment method as check our money order then you will have some additional fee if I pay by using check or money order let's go back here let's change to check money order continue here the payment information is changed now you need not to provide your credit card details instead you will you will have a simple statement here I need to validate the statement and go to continue here if you see there is some additional fee called payment method additional fee because I used check our money order so whenever I use check our money order I want to validate the the the prices additionally this payment method apart from your subtotal and shipping earlier we validated only subtotal and shipping correct but now you will have a payment method also so that means the prices will change based on the payment method that you enter so now if I want to automate the end-to-end test case to validate the prices of your entire shopping when you select money order then what is the approach I need to take I already automated the test cases of credit card now I I need to automate the test case of money order okay so if you see here this is the test case that we automated by using credit card now I need to want automate another test case with money order so what is the approach that we need to take so that is where the libraries and reusable test blocks comes into picture because when you are changing your payment method right the all the steps that we follow like login is same going to operational shoes is same adding your blue jeans is same go to shipping card that is also saying agreeing to the terms that is also same in this test case click on checkout it is same providing billing address same right shipping method so he's also same payment method is different so that means there are lot of reusable steps that are involved in automating this this test case I need there are two methods either I can simply copy this test case entire test case and create a duplication and do some modifications but which is not recommended because if there is any change in your properties you have to change in both the test cases so better use libraries test step libraries provided by Tasker okay so now what is our first step that we need to follow before we automate check-in money order scenario first step is identify the reusable test tips that you can reuse while automating the new test case right so for that go to in work right click and create a library create test step Library as I told you libraries is called as desktop library in task click on create desktop Library okay I created test test step Library under in work okay now we need to identify a reusable steps and map those reusable test tips under Library as a reusable test step blocks how I'll tell you let's assume this precondition right this entire precondition where you are opening URL logging in sorry navigate to login page and providing credentials this step can be reused as it is in our new scenario by using money order correct so that means you can simply this entire folder can drag and drop to library so see observe clearly as soon as I drag and drop to library what happens this precondition see if you see here this entire folder now is marked with arrow mark and a suffix with references included that means and here if you see the precondition is error this is a reusable test step block this is a reusable tester block okay and this precondition is reference of this reusable test block from the library okay done post condition in post condition also what are you doing order success you are uh once order is successful you are clicking on continue and then you are logging out and wait until login is appear and closing the browser so this is also common in the test case so that means this is also a reusable test block that means I can now Mark this as a reusable test block so that's why drag and drop this also into Library now you see this turned into Arrow Mark and there is a suffix with reference precondition okay and expand this process now expand this process and here let me drag and drop order product so that means ordering a product is common for our new test case also so that means this is also a reusable function drag and drop to your library so as soon as I drag and drop here see the reference is added if you see here the reference is added for the order product done and start checkout process even start checkout process is common so this is also reusable function drag and drop here so done start checkout references built and your start checkout process is identified as a reusable tested block under Library folder and verification of prices is not reusable function sorry let me do one thing let me drag and drop all the processes let's assume that I identify this as a reusable function verification of prices check out also let's drag and drop checkout also and let's drag and drop confirmation also and drag and drop verification of success so Frankly Speaking this checkout process and verification of prices are not same in our case because in the checkout process payment method is going to change and in the verification of prices the prices that displays on the screen also gonna change that means this is also not reusable function but confirmation is same as soon as I confirm validation of confirmation message is same so that is reusable test block and verification of success also same that is also reasonable test block except start checkout process accept checkout process rest all same correct so checkout process and verification of prices are not same but still I identified them as reusable functions I'll tell you why okay for now I identified all the reusable testing blocks and if You observe clearly the library is not ordered in the sequence of your execution it is ordered based on your alphabetic okay that's how it works in Tasker all the tested blocks will be ordered in alphabetic order okay so now done so we identified reusable test step blocks now let's create a new test case for the new scenario let's automate the new scenario now okay for that in in work item let me create a new test case here okay the new test case right click create folder first name this as session 14 Library and reusable test steps okay step step blocks okay so done and here now let's expand this okay let's keep this expand this here okay so now in session 14 the library reusable test blocks now I want to automate the scenario what I told you now okay logging in order representation shoes but use the payment method money order right how we already automated everything if you see we already identified all the reusable tested blocks so what is my first tip my first step is logging in open URL login that means the precondition whatever we automated here I can reuse as it is so for that this is my test case correct this is my test case this is my new folder test case let me create a new test case here okay let me create a new test case here create test case just mention this as shipping costs money order this time it's not credit card money order so now first precondition where open URL navigate login provide credentials is I can reuse as it is so that's why I'm gonna drag and drop this entire folder to the test case okay if you see here still you can see the reference that means this precondition is coming from your library reference okay done I logged in I automated login functionality that's it for the new test case as soon as I log in post condition this also I can directly reuse logout functionality also I just drag and drop here now let's create a process folder here let me create another folder right click create folder process so I'm creating a folder and just ordering it as process okay under process now I cannot re I can reuse lot of functions order product I can directly drag and drop order product because ordering product is same because go to operation choose an order and then start checkout this also I can directly use that's why drag your reusable tester blocks start checkout reusable test block from library and drop into process folder done and then check out process actually the checkout process is going to change little bit this checkout process but still what it is going to change the change is in the checkout process your payment method whatever you are gonna use the payment method right instead of credit card we'll be using money order and here I'm not going to provide entire credit card information but instead I'm gonna just click on continue on the screen okay this is gonna change okay let's keep this aside for now and what about next verification of price is also Gonna Change that's why I don't want to drag that and what about confirmation so confirmation is same just drag and drop here from library to the new test case and then verification of success also same so verification of success drag and drop to the new process done one two three four five six total six steps out of six we only build four steps now checkout process so what I want to do I want to use this reusable tester block as it is are there are two methods either you can start creating step from the beginning here or you can reuse this and resolve the reference and modify it so what I'll do I'm gonna reuse this function I'm going to reuse this checkout process as it is drag and drop here and bring this checkout process after start checkout okay after start checkout checkout process now I can modify this but when I modify this here it's going to modify your entire library because this checkout process is coming from your test step block if I make any changes here right everything is going to change here and all the reference is going to change basically your entire test step in all the test cases is going to change so now because this checkout process is going to change totally I want to resolve the reference here how right click and click on resolve reference as soon as I click on resolve reference what it happens the reference is now no more with the library this is now independent independent test step if you see here there is no suffix reference it is an independent step now I can modify this test step it is not going to impact your library it is not going to impact your other test cases also so here under confirmation what is the change that you need to do sorry not under control under checkout process the change is under payment method credit card here I want to rename this as payment method money order correct I'm gonna select money order so hence here instead of credit card I want to select check our money order correct and then click on continue let's go over here go to genes right and then add 25 quantity I want to show you on the web also to avoid the confusion okay check out and continue payment method see here I am selecting check our money order but not credit card okay I selected that and then I'm clicking on continue so that is same and here payment information here after this this modification is done here payment information credit card we have so this is not no more required this I can this delete this entire step here what is required I need to capture a new module here so let's go back to module because under webshop whatever I captured here right I have not captured the controls of the screen this section payment information section what I captured I only captured credit card information see credit card I have not captured this so now I need to capture that how right click so right click here click on scan click on application now select the application that you want to work on okay I want to work on webshop right I want to capture all the controls of that new section that is appearing when I select money order correct so this is my webshop click on scan I'm gonna capture all the controls of this new section okay okay so here this is my basic view I already explained how to scan in my previous videos I suggest you guys to go through those videos I want to capture this this message entire message table okay capture this I want to capture this back button click on this I want to capture this continue button and rename this table as payment info money order table okay done and I want to rename this entire module as web shop webshop payment information earlier we named it as credit card now let me name it as money order okay and one more thing if you see the continue button is not uniquely identified correct that's why it's throwing as error message okay here so let's go to Advanced View if you see there are two ways you can make this as unique by checking this visible because this only one continue button is visible on screen even though you have lot of continue buttons but visibility is only one either you can just click on make unique what it will do it's gonna check this visible box done selected item is now unique okay let's go back to basic view now you can do this and basic we also just want to show you okay done this is also done now save this module as soon as I save this module this new module will be saved and close this if you go back to your modules here the new module is added the new module payment information apart from payment information credit card now you have payment information money order also all the controls are residing here so now let's go back to your test case here instead of payment now I want to add another test step here okay what is the test step that I want to add if you remember you can add the steps in the both of this right click click on search and add step or click on Ctrl t which brings you your test tips okay all the modules so now if you see let me enter payment information if you see here this is payment methods this is payment yeah payment information money order payment information credit card so this is what we just now we created the new module money order module I am adding that module as a test step done I added now if you see now as soon as I click on continue it appears the screen and here I need to select continue I need not to select back or I need not to capture this table so that's why here I am gonna put X against continue button that's it my new checkout process is now ready I reused checkout process from my library but I resolve the reference and I made some modifications to that checkout process by selecting the payment method as money order instead of credit card and then by removing the credit card details by adding the payment information of money order done now what about after clicking on continue and this verification of prices now let's reuse the same verification of prices from library drag and drop to process and this verification of prices comes here after checkout you will have verification of prices and here under verification of prices here now there is a small change if you go here right here here the total is not subtotal press shipping the total cost is subtotal plus shipping additional information earlier for credit card the your total is just the subtotal and shipping cost correct but now the Third parameter is added so for that what we need to do before I make it's very important one thing you need to remember guys before you make any changes you have to resolve the references if you don't resolve the references your entire test step reusable test step in library is going to change okay so that's the reason because there is a change I want to resolve the reference and do modifications so go to the verification of prices here a simple small modification car total here let me copy this math function here okay let me copy this math function because I want to reuse this later okay okay here before I actually calculate total I need to capture my payment information so that's the reason let me change this as a payment information additional fee and I want to validate if payment information additionals is five dollars or not this is five dollars right five dollars and verify this is this a five dollars or not I am verifying this and here now I need to select total now the total Math function changes what is this apart from this 10 I need to add 5 also so this is done so I am verifying total is not or not change this to numeric okay that's it let me just run this here okay I want to make sure if it works fine or not because it's already the screen is open I can simply debug in this way okay right click and run in scratch and see what it will do so it is verifying your prices it is taking lot of time that means there might be something wrong okay I think it's nothing is wrong I think it's successful now so now if you see the result right if you see the result here go here and see if the modifications you can see are not okay if you see here apart from subtotal we just added another parameter called payment method additional information if you see here your expected is y actually is y and total see your expected is 40 and actually is 40. 40 correct that means we are done so now what we did I completed automating my end-to-end test case just like that what I did I reused my precondition as it is I reused post condition HDs I reused order products capacities I reused start checkout as it is I reused confirmation as it is I reused verification of success as it is the only changes I made is checkout and verification of prices from my previous test case so now let me run this test case and see how it works okay let's log out this okay log out and close this simply right click and run this new test case that we created by using libraries and reusable tester blocks so now it should open your web web application webshop I think application seems to be very slow let's see what happens no not this okay I think let me just close this okay let me let me just go back here okay let's go back to my test case again if you see here the new test case configuration we have to see let's see if you see test configuration right we have to add a test configuration for the test case if you remember to add a browser let me add this new test configuration new test configuration and take the browser and select it as Chrome now save this now let's execute the test case now right click I mean I already explained about these configurations in my previous lesson okay I will recommend you guys to go through that session run in scratch okay it opens your web browser in Chrome now and then click on login done it enters username and password click done login appearance and choose blue jeans it enters 25 and then shopping cart agree now here payment method I have to see right the payment method it should select check money order yes it selected check money order and if you see the check money order information came and forty dollar so that's correct order successful also verified successfully is logged out and then it's closed so everything is successful so see how easy it is for us to automate any new test case if you see here in the report these are all your reusable functions correct and here also there yeah start checkout process is not reusable function okay so everything is success so nothing is failure right hope you all understand the concept of reusable tested blocks and libraries how can we use while automating your multiple test cases to avoid the duplication of the work you can reuse entire reusable functions it's kind of reusable functions you create reusable functions by using selenium right when you automate the test cases in selenium you create reusable functions right in the same way you can create reusable blocks and then you can reuse those tested blocks in N number of test cases so it cut Downs your efforts and it takes very less effort in automating the test cases and it removes the duplication and maintenance also very easy let's assume under login function okay when you are actually logging in let's say your login functionality during logging in so one of the property got changed if you change here all the test cases whatever you are referring from the precondition I mean all the test cases wherever this precondition is referenced if all the test cases automatically gets changed you need not to go to each and every test case and change the property so that's the maintenance also very easy hope you all understand the concepts it's very longer session but very useful session okay so this is our 15th lesson where I'm gonna teach you how to apply the value range and how can you rescan the controls that are required to automate your test Case by using Tasker and also how can you perform module merge and why do we need to perform module much please do subscribe this channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay so what is our agenda the first one is rescan existing modules so if you want to reuse the modules are remap the controls that can no longer be identified then it's very very important for us to rescan the modules and then manage value range column so how can we do that and why do we need you can go to your module attribute level and add values to the value range column so these values added there then creates a list or the drop down list for the attributes that can be chosen from the drop down so basically whatever the values that you define in the value range those values can be used in this case as a test data attributes so basically I am defining the test data in the module itself so that when I am creating or when I am automating the test cases I can simply use the module and then I can simply select the test data that I required from the drop down so you need not to remember the test data basically so let's say you have some coupon codes to apply so you will have some prerequisite coupon codes right so you need not to remember all these coupon codes you simply capture these in the value range of your particular module attribute and then the same coupon codes you can use in the test cases so I'm going to teach you how can you manage value range shortly okay and then module merge so this allows you to combine two modules together if attributes are duplicated in the modules you can also link this attribute and decide how you want to identify them so when you are merging your modules right if there are some duplicate attributes you can simply decide which attribute to be used and then which attributes can be merged right so now let's jump onto the system and see how can we perform rescanning and then how can you use the value range column and then how can you perform merge module okay so now let's jump onto the system okay so this is my Tasker right um so let's navigate to modules so our first agenda item is understand rescan existing modules okay so for that let's navigate to module and then webshop under webshop you have checkout process under checkout process exercise 18 rescan value range module merge okay under this select the module webshop shopping cart rescan okay this module is same as the earlier module that we used in our previous videos while automating our test cases okay shopping cart related scenario right so we have used the same module to automate our test case and this also same so it's just a duplicate of these two so I just want to show you how can we rescan and then merge these two shopping carts once we rescan why I will need to rescan let me explain why do I need to rescan the module okay so what is the scenario that we already discussed earlier we generally go to as a user you logged into shopping portal go to apparel instant shows right so I have already published almost like 13 YouTube videos so I have explained everything about webshop in my previous videos and we keep on using this website in every video okay so now let's go to Blue Jeans and here we are going to add the quantity of 25 add to cart go to shopping cart and here till date what we did we have just agreed to it and checked out right but this time what if I need to apply a discount code or what if if I need to apply gift card code so that I'll get the discount so that means I need to add or what if if I need to update the shopping cart right so for that I need to add all the controls update shopping cart enter coupon code apply coupon right this edit box add gift card so I need to add all these controls to my previous module earlier we just added checkout I agree right and this probably I think this quantity that's it so now I need to add these additional controls so for that the rescan is useful okay so when you rescan an existing module you should open the page where you want to scan or where you want to capture the additional controls in the existing module okay you need to leave the Page open and then go back to your existing module and right click and select rescan so as soon as you select rescan the xcan window will open and then it will redirect you to the same page where you captured the controls earlier okay so here it is opening the xcan now and then it redirects you to the page which we already opened okay so you need not to select the page that you want to scan it automatically read it directly okay okay so if you see here your page is open and your shopping cart is there okay so if you see here all these three controls are already added now I need to add additional controls right for that click on select on screen and then add update shopping cart button add discount coupon code edit box add apply coupon button add gift quantity box add gift card button and let's rename some of the controls for discount coupon code name this as enter discount coupon code for gift card enter gift card code okay so we rename this controls the controls and now you can let me see if I'm missing anything that's it you can Simply Save and then close so if you go back it automatically redirects you to the module if you see here earlier there are only three controls right so now I can see all the controls that I just now added okay so now the module got updated okay so now let's say see because I have created a new module with additional controls earlier I have another module I created for same shopping cart additional uh sorry another module with limited controls right limited controls only these which we used earlier now I have another duplicate shopping cart module with some additional controls so now if you want to merge these two modules our next agenda is merging merge modules right to merge the modules what should we do so before merging the modules let us understand manage value range column okay so if you go here under coupon code let me just rename this okay under enter discount coupon code so when you enter the discount coupon code I think we missed one more thing actually here another thing is let me I missed two scan another code another control what is that let me tell you so let me apply some discount coupon code here okay let me apply discount coupon code apply code so as soon as I click on apply code the coupon code was applied so this success message comes on the screen I want to capture this also let me rescan this again rescan rescan the module so now as we did earlier it automatically redirects you to the same page by opening your xcan see this is your xcan window now I need to add that text box successful text box okay so let's go here filter to the next select on screen I want to add this deep so let's rename this the coupon code oh sorry applied message coupon code applied message okay so now let's save this now okay and then close it so as soon as you close so now you see there is a coupon code applied message a new one is there okay so now when if you see here now let me understand let me tell you how to add a value range column so when you are applying the coupon code there are different types of coupon codes if you see this coupon code got me five dollars of discount let's say if I want to apply this coupon code what is this one second coupon code okay percentage total if I apply this coupon code it is giving me a discount of 2.5 dollars so you have several coupon codes that you can test right so do I need to remember all these coupon codes no you need not to remember when you are automating your test cases you need not to remember all these different types of coupon codes instead you can basically Define these coupon codes as an attributes for your module control for your control so this is my control enter discount coupon code here I can specify these coupon codes as attributes how just copy these coupon codes go to here and enter all these coupon codes you need to enter all these I mean copy and paste so basically I'm entering coupon codes without spaces see this is my coupon code separate with semicolon no space and second coupon code separate with semicolon no space that's it and save this so what it will do when you map this module so in my previous uh videos I already showed you how to automate our how to map your module to the test case right when you automate your test cases you use modules drag and drop to the test case right so when you drag and drop this coupon code once you go to let's say hey let me go to the test case one of the test case so I don't have coupon code anywhere here so what I can do in the test case attribute when I open my test case here let's assume this is one my edit box for example here here I'm entering value here you can directly see the drop down values of those coupon codes you can directly set the coupon code apart from click double click and right click you can also see these values what these coupon code values so here directly you can select the coupon code so that that coupon code will be entered into the edit box while running the test case so it's very important and it really makes your automation very easy it reduces lot of time okay so basically the test data you are defining as an attribute under module itself under column called value range okay so that is the advantage of your value range that's how you can manage your value range now so now let's go back to merge modules okay as I told you earlier we created a new module with these additional controls whereas we have used the same module here earlier with limited controls so now I have shopping card modules two shopping card modules correct which are duplicate I need not to manage these two shopping cart models so now I need to merge these two shopping card models you need to select the modules that you would like to merge okay I have selected these two modules and then on top ribbon uh there is an option called module merge modules click on merge modules so as soon as you click on merge modules a merge module assistant will open here so self there is one conflict here attribute as conflict resolve conflict okay here self healing data I need not to have let me just delete this okay so and then if you see these are all the additional if you see shopping cart product check out terms of surveys add gift card so basically these are all the controls and these are all my additional controls right so these are all uniquely identified and and my Target module so Target module is the module that is going to remind and your Source module is the module that is going to delete once we merge the modules if you see here now all those all these modules are uniquely identified and mapped to each other right so now you can click simply click on merge okay if there is any conflict you can uh basically resolve the conflicts by linking okay if you see all these are linked properly and you can simply okay let me I think check out let's see checkout is there okay this one link checkout I can link checkout to checkout okay um okay it says okay so that way you can link if I want to link uh terms of service right you can simply select this so these two got linked so this way you can link the properties and then merge the modules okay so in this case for in my case because my target module has the updated module properties I want to keep only target modules okay that's why I'm gonna click merge as soon as I click on merge it merges all your properties and it keeps your target if you see here the source module will be deleted okay so done close it if you see here you don't have another shopping cart module here I have only one shopping cart module now rename this as shopping cart that's it so now my shopping cart module is only one module with all my controls right so hope you all understand the concepts of rescan existing module why we are rescanning and how can you manage the value range column in your module at attribute level right that means test data can be managed as in attributes so that you can use them in test case section as a drop down values you simply pick up those uh the test data from the drop down values right and then how can you merge the modules okay hope you all understand the concepts very well these are all really very very important Concepts while automating your test cases if you have any queries leave your queries in the comment box I'll try to respond to your queries thank you hope you all understand how to apply the value range how can you perform rescanning of your modules or rescanning of your controls and then how can you perform module merge please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you [Music]
Info
Channel: Ravikanth FicusRoot - Tech Videos
Views: 51,669
Rating: undefined out of 5
Keywords: Tosca, Tricentis, Tricentis Tosca, Automation Tool, Test Management Tool, Automation, Tosca Automation Tool, Tosca Tool, Tricentis Tosca Automation Tool, Module, WaitOn, TestStep Library, Reusable Scenarios, Rescan, Module Merge, Tosca 16.0, Download, Navigate, SUT, XScan, Properties, Controls, Test Steps, Run Tests, Action Modes, Verify, Value Range, WHILE, IF, Loop Statements, Recovery Scenario, Cleanup Scenarios, Dynamic ID, Explicit Name, Repetition, ResultCount, Constraint, Full Course
Id: QDV_Tl0_JyU
Channel Id: undefined
Length: 272min 3sec (16323 seconds)
Published: Tue Jul 18 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.