![]() ![]() Private static ThreadLocal driver = new ThreadLocal() If you use only one driver instance, the test will be run on the one device only because the diver will use the last created session.įirstly, you should create the ThreadLocal object: The Basic Setup for Running Appium Tests in Java Using TestNGįirst of all, to run tests simultaneously on different devices, you should use ThreadLocal in order to save several drivers at one time. We’re going to use it in our sample below.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |