# How to setup appropriate desired capabilities in robot framework for appium

**URL:** <https://discuss.appium.io/t/how-to-setup-appropriate-desired-capabilities-in-robot-framework-for-appium/5233>\
**Category:** Support\
**Created:** [July 16, 2015, 3:35pm UTC](https://discuss.appium.io/t/how-to-setup-appropriate-desired-capabilities-in-robot-framework-for-appium/5233 "2015-07-16T15:35:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![atishayshukla](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/bb73d2/32.png) [@atishayshukla](https://discuss.appium.io/u/atishayshukla)\
**Post date:** [July 16, 2015, 3:35pm UTC](https://discuss.appium.io/t/how-to-setup-appropriate-desired-capabilities-in-robot-framework-for-appium/5233/1 "2015-07-16T15:35:00Z")

</div>

Hello,

I am new to robot framework.

I am using ride for my tests. I have installed AppiumLibrary. I am trying to launch the app on android but, it is not working.

I specify the keyword:

Open Application ${REMOTE\_URL},platform:${PLATFORM\_NAME},platformVersion:${PLATFORM\_VERSION},deviceName:${DEVICE\_NAME},app:${APP}

and my variables are:

${REMOTE\_URL} value: [http://localhost:4723/wd/hub](http://localhost:4723/wd/hub)  
${PLATFORM\_NAME} value - Android  
${DEVICE\_NAME} value - Android Emulator  
$APP value - E:\apks\w2p-new

I get the error as FAIL : BadStatusLine: ’ ’

Please let me know what am i doing wrong here.

Any help will be highly appreciated.

Appium server ver - 1.4.0  
Appium client - 1.2.7  
Python - 2.7

Thanks in advance

---

<div class="post-metadata">

**Author:** ![anand853](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@anand853](https://discuss.appium.io/u/anand853)\
**Post date:** [July 13, 2017, 10:25pm UTC](https://discuss.appium.io/t/how-to-setup-appropriate-desired-capabilities-in-robot-framework-for-appium/5233/2 "2017-07-13T22:25:44Z")

</div>

i hit the same problem

---

<div class="post-metadata">

**Author:** ![vnvbsudhakar](https://discuss.appium.io/letter_avatar_proxy/v4/letter/v/eb9ed0/32.png) [@vnvbsudhakar](https://discuss.appium.io/u/vnvbsudhakar)\
**Post date:** [August 20, 2018, 5:34pm UTC](https://discuss.appium.io/t/how-to-setup-appropriate-desired-capabilities-in-robot-framework-for-appium/5233/3 "2018-08-20T17:34:30Z")

</div>

\*\*\* Variables \*\*\*  
${URL} [http://127.0.0.1:4723/wd/hub](http://127.0.0.1:4723/wd/hub)  
${platformName} android  
${platformVersion} 7.0  
${deviceName} 192.168.50.101:5555  
#${deviceName} emulator-5556  
${appPackage} com.xx.xxx.xxx.mobile  
${appActivity} com.xxx.xxx.xxx.mobile.MainActivity  
${app} C:/git/DCS\_Mobile\_Automation/

\*\*\* Keywords \*\*\*  
Launch Application  
[Documentation] If app not is installed then Intall and then Launch SAP Retail Execution Android  
log to console launching application  
Open Application ${URL} platformName=${platformName} platformVersion=${platformVersion} deviceName=${deviceName} appPackage=${appPackage} appActivity=${appActivity}  
… app=${app} noReset=${TRUE}

Note: Give tab(4spaces) between each capability
