T E S B O

Tesbo

Session : Multi Driver Support in Tesbo

Table of Contents

Multi Driver Functionality #

 As in current time, we know application which are also coming with the multi user interaction, for example chat application where two different user can interact each other. It’s not easy to automate this type of application as you’ll need to different driver to access the two different user. Tesbo has inbuilt functionality for work with two different driver together in sync and so you can run two different user with same script. For example, We have a job posting site, normally it has two user as client and a freelancer, the functionality is like client post a job and freelancer can bid for that and client can hire that freelancer. Let’s say we have case where we need to use both user Client as well as Freelancer, which will be tough by using single driver, and here Tesbo multi driver functionality is helpful.   From Tesbo, you can run both session (Client and Freelancer) together in single script. You need to pass the session names with Session key, for example, here Client and Freelancer will be your two sessions. When you’ll run your script you’ll see it’ll run two separate window to login as Client and Freelancer with two different driver. For this Tesbo Session is used.   Even if you need to kill a session or close a session you can do by [Close: <Session Name>], like here to closing the Freelance session you can call [Close: Freelancer] Example  In below example you can see we have two different user and they are able to chat each other without running two separate driver or script.  

       Test: To verify Multi Driver functionality
       #multi_browser #regression
       Session: Client, Freelancer               // Declare the session name that need to use in Test, here is the two session
       [Client]                                                //  Use declared session inside between Square Brackets [ ]
       Step: Open URL 'https://www.linkedin.com/'
       Step: Enter 'client@gmail.com' into @emailTextBox       //First user login with Email ID
       Step: Enter 'password' into @passwordTextBox            
       Step: Click on @signIn Button
     Step: Click on @MyNetwork
       Step: Click on @SeeAll
       Step: Enter 'Tesbo' on @ConectionSearch                 //Search connection you want to send message.
       Step: Press Enter
       Step: Click on @Message
       Step: Enter 'Hi' on @MessageBox
       Step: Click on @Send Button
       [Freelancer]
       Step: Open URL 'https://www.linkedin.com/'
       Step: Enter 'freelancer@gmail.com' into @emailTextBox   //Second user login with Email ID
       Step: Enter 'password' into @passwordTextBox
       Step: Click on @signIn Button
       Step: Click on @MessageIcon
       Step: Enter 'Hello' on @MessageBox
       Step: Click on @Send Button
   [Client]
       Step: Enter 'How are you' on @MessageBox
       Step: Click on @Send Button
   [Close: Client]
     [Freelancer]
       Step: Enter 'Fine' on @MessageBox
     Step: Click on @Send Button
       End

Powered by BetterDocs

Leave a Comment