Sunday, 16 February 2014

Starting calabash ios Testing with simple application Source code + Steps + video

Source Code: Download source code for project , lets use an open source project to set up our tests, 

Video : 


First download the app and compile it 
  • Setup calabash using below command (run this command from folder where project is present)
calabash-ios setup

  • open MJTransitionEffect.xcodeproj file and choose MJTransitionEffect-cal scheme and run the application 
  • Verify below message is shown in xcode 
MJTransitionEffect[14968:a0b] Started LPHTTP server on port 37265

  • Using terminal navigate to folder where application is present and type below command
calabash-ios console 
  • Once you see ruby console run below commands and verify output of below command
MJTransitionEffect $: calabash-ios console 
Running irb...
irb(main):001:0> start_test_server_in_background
irb(main):001:0> touch "view marked:'India'"
irb(main):001:0> touch "view marked:'DONE'"

Finally Thanks to mayuur for such a nice project

No comments:

Post a Comment