How to create a correct parallel selenium execution using @BeforeSuite and each @Test are in a separate class with TestNG?
问题 I trying to make a test design using Selenium and TestNG , I put each @Test in a separate class, and using once @BeforeSuite & @AfterSuite for all classes, the reason is: The code is easy to maintain Data Driven, in order to be able to choose which classes to run through the xml file. Then what I think is how I only login once and the session can be used by all subsequent tests, what I've done so far is: Base class: public class Base { protected static WebDriver driver; @BeforeSuite public