# TestNG with DataProvider on Multiple Devices

**URL:** <https://discuss.appium.io/t/testng-with-dataprovider-on-multiple-devices/16904>\
**Category:** Tutorials/Documentation\
**Created:** [May 26, 2017, 2:30pm UTC](https://discuss.appium.io/t/testng-with-dataprovider-on-multiple-devices/16904 "2017-05-26T14:30:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Telpjmal](https://discuss.appium.io/letter_avatar_proxy/v4/letter/t/3bc359/32.png) [@Telpjmal](https://discuss.appium.io/u/Telpjmal)\
**Post date:** [May 26, 2017, 2:30pm UTC](https://discuss.appium.io/t/testng-with-dataprovider-on-multiple-devices/16904/1 "2017-05-26T14:30:50Z")

</div>

TestNG with DataProvider I have a multidimensional object that passes the device information for each device. Example object{ {device name, deviceUdid}, {device1, device2} }

After running a @Test the app closes and reopens on the next @Test. My app does a video connection that I need for all @Test. How do I keep the app from closing until all @Test are done and then continue all @Test for the next device?
