Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

iPhone4 Simulator #4

Open
acf opened this issue Jun 30, 2010 · 3 comments
Open

iPhone4 Simulator #4

acf opened this issue Jun 30, 2010 · 3 comments

Comments

@acf
Copy link

acf commented Jun 30, 2010

The sample feature using the Universal application fails if the simulator->Hardware->Device is set to iPhone4.

Background:                                                        
Given "app/Universal.xcodeproj" is loaded in the iphone simulator 
Scenario: Scrolling                                                 
When I tap "Show Test Modal"                                 

These both pass and the app starts. The tap on "Show Test Modal" seems to kill the Universal app, but this may be iCuke killing the app on a test failure (see below)?

Then I should see "Lorem ipsum dolor"                    
  Content "Lorem ipsum dolor" not found in: <screen>
    <frame x="0.000000" y="20.000000" width="320.000000" height="460.000000"/>
    <UIWindow>
      <UILayoutContainerView>
@rjose
Copy link

rjose commented Jan 8, 2011

Not sure if this is related, but as I was following the example from http://pragprog.com/magazines/2010-07/bdd-on-iphone-icuke, the app launched properly, but then it would die immediately. I noticed a dialog briefly appear and then disappear before it went down. I couldn't read the exact text, but it seemed to be something about allowing network connections. The default button was "Accept".

For one run, I was able to hit "Return" fast enough to enable this. After that, the tests ran properly.

@juleschamp
Copy link

Similar scenario as above, returns a timeout error. Anyone out there had success with iCuke/iOS 4.2?

Feature: Adding a contact
In order to remember my friend’s phone number
As a forgetful user
I want to add my friend to my contact list

Background: # features/add_a_contact.feature:6
Given "QuickContacts.xcodeproj" is loaded in the simulator # iCuke-0.6.3/lib/icuke/cucumber.rb:197
execution expired (Timeout::Error)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:60:in launch' features/add_a_contact.feature:7:inGiven "QuickContacts.xcodeproj" is loaded in the simulator'

Scenario: Adding a contact # features/add_a_contact.feature:9
When I tap "Create New Contact" # iCuke-0.6.3/lib/icuke/cucumber.rb:227
And I type "Joe" in "First" # iCuke-0.6.3/lib/icuke/cucumber.rb:231
And I type "Bloggs" in "Last" # iCuke-0.6.3/lib/icuke/cucumber.rb:231
And I tap "Done" # iCuke-0.6.3/lib/icuke/cucumber.rb:227
And I tap "Display Picker" # iCuke-0.6.3/lib/icuke/cucumber.rb:227
Then I should see "Joe Bloggs" # iCuke-0.6.3/lib/icuke/cucumber.rb:219

Failing Scenarios:
cucumber features/add_a_contact.feature:9 # Scenario: Adding a contact

1 scenario (1 failed)
7 steps (1 failed, 6 skipped)
0m32.904s

@jollychang
Copy link

I got this issue too when I try the example in icuke(cucumber ./
feature).I have set "Build Location" as "Place build products in
locations specified by targets" in Xcode4.
I have try jkp(https://github.com/jkp/icuke) and
BlueFrogGaming(https://github.com/BlueFrogGaming/icuke) forks,but this
issue all the same.
as the jkp mention(http://stackoverflow.com/questions/4996517/icuke-with-xcode-4-times-out).I build the WaxSim(https://github.com/gmcinnes/WaxSim) and launch app,it is ok (./waxsim -s 4.0 /Test.app/),so i
think may be this is icuke's problem?!

Thanks

Mac OSX 10.6.7
ruby 1.8.7
gem 1.8.5
cucumber :0.10.6
iCuke:0.6.3
------Error Message Start-----
Background:

features/iphone.feature:6

Given "app/Universal.xcodeproj" is loaded in the iphone simulator 

lib/icuke/cucumber.rb:188

  execution expired (Timeout::Error) 
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ 

ruby/1.8/timeout.rb:60:in launch' ./features/support/../../lib/icuke/waxsim.rb:22:inlaunch'
./features/support/../../lib/icuke/cucumber.rb:18:in launch' ./features/support/../../lib/icuke/cucumber.rb:197:in/^(?:"([^])" from )?"([^\"])" is loaded in the (?:(iphone|ipad) )?
simulator(?: with SDK ([0-9.]+))?$/'
features/iphone.feature:7:in `Given "app/Universal.xcodeproj" is
loaded in the iphone simulator'
Scenario: Scrolling

features/iphone.feature:10

When I tap "Show Test Modal" 

lib/icuke/cucumber.rb:218

Then I should see "Lorem ipsum dolor" 

lib/icuke/cucumber.rb:210

But I should not see "Fusce sem nisi" 

lib/icuke/cucumber.rb:214

When I scroll down to "Fusce sem nisi" 

lib/icuke/cucumber.rb:238

Then I should see "Fusce sem nisi" 

lib/icuke/cucumber.rb:210

But I should not see "Lorem ipsum dolor" 

lib/icuke/cucumber.rb:214

Failing Scenarios:
cucumber features/iphone.feature:10 # Scenario: Scrolling
1 scenario (1 failed)
7 steps (1 failed, 6 skipped)
0m30.417s

------Error Message End----- 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants