Я новичок в автоматизированном тестировании Calabash iOS. Я установил "Xcode 4.2", "Ruby version 2.0.0p643" и "calabash-cucumber gem" на Snow Leopard (версия 10.6.8)
Я выполнил команду "calabash-ios setup" и создал цель (цель test-cal) для своего тестового проекта iOS. С помощью этой команды CFNetwork.framework и calabash.framework добавляются к цели test-cal.
После этого я запустил "calabash-ios gen" в терминале, создал подкаталог с именем functions и вручную добавил подкаталог features в цель test-cal.
Я написал тестовый скрипт в файле sample.feature в папке с функциями, а затем выполнил в терминале команду огурца, чтобы протестировать скрипт.
После запуска команды выдает следующую ошибку:
Scenario: Sample test # features/sample.feature:3
Unable to auto detect APP_BUNDLE_PATH.
Have you built your app for simulator?
Searched dir: /Users/octaneconference/Library/Developer/Xcode/DerivedData/Test-frkimcejhwemmaaapwknwfwvhnmb
Please build your app from Xcode
You should build the -cal target.
Alternatively, specify APP_BUNDLE_PATH in features/support/01_launch.rb
This should point to the location of your built app linked with calabash.
(RuntimeError)
./features/support/01_launch.rb:29:in `Before'
Given the app has launched # features/steps/sample_steps.rb:1
And then the Sound Enable screen will appear # features/sample.feature:5
When click on "NO" button # features/sample.feature:6
Then Menu screen will appear in the screen # features/sample.feature:7
Then take a picture # features/sample.feature:8
Failing Scenarios:
cucumber features/sample.feature:3 # Scenario: Sample test
1 scenario (1 failed)
5 steps (1 skipped, 4 undefined)
0m0.965s
You can implement step definitions for undefined steps with these snippets:
Given(/^then the Sound Enable screen will appear$/)
do
pending # Write code here that turns the phrase above into concrete actions
end
When(/^click on "([^"]*)" button$/) do |arg1|
pending # Write code here that turns the phrase above into concrete actions
end
Then(/^Menu screen will appear in the screen$/)
do
pending # Write code here that turns the phrase above into concrete actions
end
Then(/^take a picture$/) do
pending # Write code here that turns the phrase above into concrete actions
end
Буду признателен за любые предложения/мысли по устранению этой проблемы.