简体   繁体   中英

How to run multiple test in a single session - Selenium

I am working on a test automation for a webapp that takes several time to login. I would like to create a automation that can run multiple test in a single session without the need of login in and out constantly(which will reduce the time running the automation in more than 1h 30m every day).

I thought about running the login, wrapping the tests in a loop (so I can select the tests that will be runned) and logout once everything is completed. However I don't know how I can do that, how to select and execute the tests that will be run from Visual Studio, if it would still be possible to run test in parallel, different types of users, etc.

Is this something possible to do? Any tool that may help with this? Or if you have succeeded... How?

It is un-clear how your driver gets instantiated and killed, but the most theoretical answer is to do a Driver.Quit only after all your tests have executed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM