Cucumbers / Calabash-iOS and Xamarin.iOS

I am trying to implement user interface testing using the calabash-ios testing framework. I followed all the hauts taught on different sites (xamarin testcloud testing guide, on github for calabash-ios framework, ...)

In my project folder, I created a function directory with calabash-ios gen

My project structure is similar to the following: (only part of the folder / file (s)

- Certificates
- Resources
- Solutions
- Source
|- B2.Device.Core.iOS
|- B2.Device.Service.iOS
|- B2.Device.iOS
 |- AppDelegate.cs
 |- B2.Device.iOS.csproj
 |- Info.plist
 |- MyFooViewController.cs
 |- MyBarViewController.cs
 |- bin
  |- iPhone
  |- iPhoneSimulator
   |- Debug
    |- *.dll
    |- B2DeviceiOS.app
    |- B2DeviceiOS.exe
 |- features
  |- my_first.freature
  |- step_definitions
   |- *.rb
  |- support

A call cucumberinside Source/B2.Device.iOS/throws an exception:

Dannys-MacBook-Air:B2.Device.iOS dannyyy$ cucumber 
Feature: Running a test
  As an iOS developer
  I want to have a sample feature file
  So I can begin testing quickly

  Scenario: Example steps                            # features/my_first.feature:6
  Unable to find *.xcodeproj in /Users/dannyyy/Projects/BauPlusMobile/Trunk/Source/B2.Device/B2.Device.iOS (RuntimeError)
  /var/folders/6p/s4dwcb0x1yx9wjjk_51ds21r0000gn/T/Calabash-CA09BEA0-1735-4818-AB85-4874C6849183/Gems/gems/calabash-cucumber-0.9.162/lib/calabash-cucumber/launch/simulator_helper.rb:61:in `derived_data_dir_for_project'
  /var/folders/6p/s4dwcb0x1yx9wjjk_51ds21r0000gn/T/Calabash-CA09BEA0-1735-4818-AB85-4874C6849183/Gems/gems/calabash-cucumber-0.9.162/lib/calabash-cucumber/launch/simulator_helper.rb:153:in `app_bundle_or_raise'
  /var/folders/6p/s4dwcb0x1yx9wjjk_51ds21r0000gn/T/Calabash-CA09BEA0-1735-4818-AB85-4874C6849183/Gems/gems/calabash-cucumber-0.9.162/lib/calabash-cucumber/launcher.rb:148:in `relaunch'
  /Users/dannyyy/Projects/BauPlusMobile/Trunk/Source/B2.Device/B2.Device.iOS/features/support/01_launch.rb:29:in `Before'
    Given I am on the Welcome Screen                 # features/step_definitions/my_first_steps.rb:1
    Then I swipe left                                # calabash-cucumber-0.9.162/features/step_definitions/calabash_steps.rb:237
    And I wait until I don't see "Please swipe left" # calabash-cucumber-0.9.162/features/step_definitions/calabash_steps.rb:168
    And take picture                                 # calabash-cucumber-0.9.162/features/step_definitions/calabash_steps.rb:232

Failing Scenarios:
cucumber features/my_first.feature:6 # Scenario: Example steps

1 scenario (1 failed)
4 steps (4 skipped)
0m1.043s

How can I create an Xcode project file if I am developing a Xamarin.iOS environment? I also tried to installDEVICE_BUNDLE_PATH=~/Projects/BauPlusMobile/Trunk/Source/B2.Device/B2.Device.iOS/bin/iPhoneSimulator/Debug

But, of course, the same exception will be excluded!

All the video demos and screencasts that I saw worked with the Xamarin.iOS environment, but without this error.

- cucumber NO_LAUNCH=1 Xamarin Studio .

, - .

+4
1

. , , Xamarin.iOS.

  • , *.csproj
    > cd ~/Projects/MyProject/Trunk/Source/B2.Device/B2.Device.iOS
  • features > calabash-ios gen
    • calabash-ios, > sudo gem install calabash-cucumber
  • config > mkdir config
    > cd config
  • cucumber.yml
  • ( , , )

    # YAML Template
    ---
    ipad-sim: APP="~/Projects/MyProject/Trunk/Source/B2.Device/B2.Device.iOS/bin/iPhoneSimulator/Debug/B2DeviceiOS.app" BUNDLE_ID="tld.domain.project" SDK_VERSION=6.1
    

  • > calabash-ios -p ipad-sim
+7

All Articles