# Using Custom Desired Capabilities with Profiles

**URL:** <https://forum.katalon.com/t/using-custom-desired-capabilities-with-profiles/18209>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [January 24, 2019, 6:23am UTC](https://forum.katalon.com/t/using-custom-desired-capabilities-with-profiles/18209 "2019-01-24T06:23:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [January 29, 2019, 8:21pm UTC](https://forum.katalon.com/t/using-custom-desired-capabilities-with-profiles/18209/4 "2019-01-29T20:21:36Z")

</div>

Hi @GeneralChingChicken,

For starters, I would put the `RunConfiguration.setMobileDriverPreferencesProperty(key, value)` code in your test case file, right before the `Mobile.startApplication` function is called. For a further example, you can check out this post:

> [@How to change desired capabilities during executing the test suit on real android device](http://forum.katalon.com/t/how-to-change-desired-capabilities-during-executing-the-test-suit-on-real-android-device/18385/2):
>
> Hi @zanoon2010, I think you can fake out the test to switch applications by setting the Desired Capabilities, using RunConfiguration.setMobileDriverPreferencesProperty: import com.kms.katalon.core.configuration.RunConfiguration import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile // You will need a real .apk file here in order to launch successfully, even if you're not testing it String appFile = "/fullpathtomyfile/mobile-beta.apk" // The app info for the built-in app y…

– Chris

---

_[View the full topic](https://forum.katalon.com/t/using-custom-desired-capabilities-with-profiles/18209)._
