rajbeniwal/zucchini-demo — Issue #1: Running zucchini-demo project ran into java script error
Author: ChenxinYan
Created: 2012-01-17 20:27:03+00:00
State: open

Here are what I did by following README for zucchini-demo and zucchini.

1) Run "zucchini generate --project /path/to/CoreDataBooks"
2) Run "zucchini generate --feature /path/to/CoreDataBooks/features/my_feature"
3) Download Apple's sample CoreDataBooks to CoreDataBooks directory and compile it onto iPad device. The application can run on iPad without issues.
4) Modified CoreDataBooks/features/support/config.yml. Here is modified config.yml

======start config.yml =====
app: /Users/yujing.wu/Library/Developer/Xcode/DerivedData/CoreDataBooks-alchxpugitlugpgpxsfhvrswwkgi/Build/Products/Debug-iphoneos/CoreDataBooks.app
template: '/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate'

devices:
Systems iPad 4:
UDID : 43f5e9e749005e145fcf0f1b5d9346e2e2b4ecf4
screen: ipad_ios5

servers:
backend:
host: 192.168.1.2
port:
======start config.yml =====

3) In command line at the parent directory of CoreDataBooks run:
ZUCCHINI_DEVICE="Systems iPad 4" zucchini run CoreDataBooks/features

Here is the output

2012-01-17 12:18:04 -0800 None: Script threw an uncaught JavaScript error: Line '' doesn't define a screen context
Instruments Trace Complete (Duration : 3.691753s; Output : /Users/yujing.wu/workspace/trial/SampleProjectFromApple/instrumentscli0.trace)
/Users/yujing.wu/.gem/ruby/1.8/gems/zucchini-ios-0.5.4/lib/feature.rb:64:in `collect': Instruments run error (RuntimeError)
from /Users/yujing.wu/.gem/ruby/1.8/gems/zucchini-ios-0.5.4/lib/feature.rb:81:in `with_setup'
from /Users/yujing.wu/workspace/trial/SampleProjectFromApple/CoreDataBooks/features/my_feature/setup.rb:4:in `before'
from /Users/yujing.wu/.gem/ruby/1.8/gems/zucchini-ios-0.5.4/lib/feature.rb:81:in `with_setup'
from /Users/yujing.wu/.gem/ruby/1.8/gems/zucchini-ios-0.5.4/lib/feature.rb:54:in `collect'
from /Users/yujing.wu/.gem/ruby/1.8/gems/zucchini-ios-0.5.4/lib/runner.rb:30:in `run'
from /Users/yujing.wu/.gem/ruby/1.8/gems/zucchini-ios-0.5.4/lib/runner.rb:25:in `each'
from /Users/yujing.wu/.gem/ruby/1.8/gems/zucchini-ios-0.5.4/lib/runner.rb:25:in `run'
from /Users/yujing.wu/.gem/ruby/1.8/gems/zucchini-ios-0.5.4/lib/runner.rb:19:in `execute'
from /Users/yujing.wu/.gem/ruby/1.8/gems/clamp-0.3.0/lib/clamp/command.rb:73:in `execute'
from /Users/yujing.wu/.gem/ruby/1.8/gems/clamp-0.3.0/lib/clamp/command.rb:64:in `run'
from /Users/yujing.wu/.gem/ruby/1.8/gems/clamp-0.3.0/lib/clamp/command.rb:126:in `run'
from /Users/yujing.wu/.gem/ruby/1.8/gems/zucchini-ios-0.5.4/bin/zucchini:19
from /Users/yujing.wu/.gem/ruby/1.8/bin/zucchini:19:in `load'
from /Users/yujing.wu/.gem/ruby/1.8/bin/zucchini:19

Is there anything else I missed? Do I need to change template field and servers field in config.yml?