# How to take screen shot when running device tests on Grid?

**URL:** <https://discuss.appium.io/t/how-to-take-screen-shot-when-running-device-tests-on-grid/13589>\
**Category:** Support\
**Created:** [December 2, 2016, 6:33am UTC](https://discuss.appium.io/t/how-to-take-screen-shot-when-running-device-tests-on-grid/13589 "2016-12-02T06:33:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkatesh](https://discuss.appium.io/user_avatar/discuss.appium.io/venkatesh/32/5358_2.png) [@Venkatesh](https://discuss.appium.io/u/Venkatesh)\
**Post date:** [December 2, 2016, 6:33am UTC](https://discuss.appium.io/t/how-to-take-screen-shot-when-running-device-tests-on-grid/13589/1 "2016-12-02T06:33:42Z")

</div>

How to take screen shot when running device tests on Grid?

I have four different Android drivers, how do I pass driver uniquely to **onTestFailure(ITestResult result)** for failures on different devices.
