Calabash-Android: Use paramters in feature files

35 views
Skip to first unread message

bahc...@googlemail.com

unread,
May 8, 2015, 4:13:07 AM5/8/15
to calabash...@googlegroups.com
Hallo,

I need ur help for following problem:


I want to use in the command

calabash-android run xxx.apk $parameter1 $parameter2

which i can use in my feature file like


The I enter text "$parameter1" into fiel with id.....

Thank you for your quick reply...

Cavit

Morten Gregersen

unread,
May 11, 2015, 2:16:08 AM5/11/15
to calabash...@googlegroups.com
I've done something similar.

I set some environment variables when launching Calabash
MODEL=iphone6plus

In the ruby-files (step definitions or support files) I just extract the variable from ENV
ENV['MODEL']

Cavit Bahcivan

unread,
May 11, 2015, 9:07:58 AM5/11/15
to calabash...@googlegroups.com
Thats it!!!

Many thanks.... :)

--
You received this message because you are subscribed to a topic in the Google Groups "calabash-android" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/calabash-android/-JWdzfWTshk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to calabash-andro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages