Contributions
is it possible to execute test cases simultaneously at a time on different browsers?
Hi All, I want to run the same test cases in different browsers at a time. The browsers should open at the same time and the test cases should be executed. I've written a piece of code to execute thelogin scenarioindifferent browsers using for loop. But in this case the chrome browser is opened first, executed the test case and then IE browser later. So my requirement is, both the browsers should be launched at the same time and execution should be performed. PFB for the code written. function Run_Login() { var browser_name = ["chrome","iexplore"]; for (i=0;i<browser_name.length;i++) { var Driver; Driver = DDT.ExcelDriver("C:\\Users\\Nandini Thota\\Desktop\\Sagicor_FM\\Sagicor_FM\\TestData\\Login.xlsx", "Sheet1"); while (! Driver.EOF() ) { //Read Columns EmailID = DDT.CurrentDriver.Value("EmailID"); Password = DDT.CurrentDriver.Value("Password"); //Function execution Log.AppendFolder("Login to the website with a registered user"); Browsers.Item(browser_name[i]).Run("https://www.hollandandbarrett.com/"); Login(); //Its a reusable function Aliases.browser.Close(); //Next Record Driver.Next();// Goes to the next record Log.PopLogFolder(); } } }1.2KViews0likes2Comments