Help required: New to iOS automation

108 views
Skip to first unread message

Ayushi Agarwal

unread,
May 17, 2013, 2:59:43 PM5/17/13
to calaba...@googlegroups.com
Hello,

I am new to iOS automation and was getting started with Calabash. I have few queries:
I am unable to find is there any IDE to record, play and create calabash script. Also a tool to debug my scripts.

Thanks
Ayushi

Mayank Jain

unread,
May 17, 2013, 3:28:53 PM5/17/13
to calaba...@googlegroups.com
You have to write your own scripts with the help of console using cucumber if you using Ruby,
AFAIK there is no IDE to record/create scripts directly.
For more check the wiki[1]



Ayushi

--
You received this message because you are subscribed to the Google Groups "calabash-ios" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calabash-ios...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mayank.

Ayushi Agarwal

unread,
May 18, 2013, 4:47:04 AM5/18/13
to calaba...@googlegroups.com
Thanks Mayank for quick response.

So as per my understanding writing script should be some what similar to writing a text file and saving it with the ".feature" extension... but I am not sure how can I debug my script in case of failure.

Krukow

unread,
May 18, 2013, 7:01:56 AM5/18/13
to calaba...@googlegroups.com
There is no recording of test scripts, and we believe strongly that this approach leads to unmaintainable code bases and poor test script quality, duplication etc.

However, there is a very good IDE called RubyMine which is great for ruby (debugging, code-completion, jump-to-definition, refactoring etc) and they're building in support for Calabash directly in the IDE (although I don't know the status of that).

As soon as we manage to finish the Frank-Calabash integration you'll also get the symbiote tool which is very useful.

- Karl  

Ayushi Agarwal

unread,
May 18, 2013, 8:20:26 AM5/18/13
to calaba...@googlegroups.com
thanks Karl...

I'll explore Ruby Mine for writing test script so can you please forward me some helpful links for using Calabash and ruby mine apart from your own calabash-ios wiki...

Krukow

unread,
May 20, 2013, 1:11:37 PM5/20/13
to calaba...@googlegroups.com
I'm afraid I don't have any links. I've been wanting to do a tools blog post for some time, but not had time...

Ayushi Agarwal

unread,
May 20, 2013, 1:28:22 PM5/20/13
to calaba...@googlegroups.com
One more query please, I am unable to run the script in Ruby Mine. It is showing function undefined although I am able to meta-point (jump to definition).
I already added the Gemfile.

Can you please help me...

Thanks
Ayushi

Karl Krukow

unread,
May 20, 2013, 1:30:48 PM5/20/13
to calaba...@googlegroups.com, calaba...@googlegroups.com
Maybe I can but you'll have to give a much more detailed description of the error, the code and the exact error messages

Sent from my iPhone
--

Ayushi Agarwal

unread,
May 20, 2013, 1:42:59 PM5/20/13
to calaba...@googlegroups.com
Hey I don't remember the exact error message (can attach tomo morning). I was basically trying to run the sample script only:
Feature: Running a test
  As an iOS developer
  I want to have a sample feature file
  So I can begin testing quickly

  Scenario: 
Given I am on the Welcome Screen 
Then I swipe left
And I wait until I don't see "Please swipe left" 
And take picture   


When I am mouse click on any of the step like : "I am on the Welcome Screen" it is opening the step definition but when i am running the script from Ruby mine it is showing error as step undefined.

Krukow

unread,
May 20, 2013, 2:15:22 PM5/20/13
to calaba...@googlegroups.com
You'll need to configure RubyMine to run the script using Calabash.

I'll find the details soon and post here.

- Karl

Ayushi Agarwal

unread,
May 21, 2013, 4:36:30 AM5/21/13
to calaba...@googlegroups.com
Thanks Karl, I will be really helpful if you can post the steps asap.

Thanks

tanm...@gmail.com

unread,
May 21, 2013, 10:45:31 AM5/21/13
to calaba...@googlegroups.com
Hi Ayushi,
Thanks for raising these questions.. I am also new to calabash, ruby and iOS programming and hence your queries are important to me as well . I have automated the app given in the iOS example (given by Karl)with some predefined steps and its amazing.
Reply all
Reply to author
Forward
0 new messages