【发布时间】:2012-12-07 16:49:24
【问题描述】:
我正在尝试使用 Frank 自动化 jenkins 的测试会话。
这是我收到的错误消息。
(Frank::Cucumber::FrankNetworkError)
./step_definitions/test_steps.rb:30:in `/^I navigate to button V\303\244der$/'
test.feature:41:in `When I navigate to <link>'
| Radar | Norrland |
*********************************************
Oh dear. Your app fell over and can't get up.
*********************************************
Jenkins 从 git 中检查代码,除此之外我还添加了一个 shell 命令,如下所示。
cd ios #<--this is so that I go to the root folder, the one with the .xcodeproj project
frank setup
frank build
frank launch
mv features/*.feature Frank/features/. #<--- this is the testscript
mv features/step_definitions/*.rb Frank/features/step_definitions/. #<--here it is moved to the newly created frank/features & Frank/features/step_definitions folder
cd Frank/features
cucumber test.feature
一切都按照它应该的方式构建,如果我去服务器
并从我的 shell 命令中手动键入最后一行,测试将被执行。
最好的问候
【问题讨论】:
-
图你是在 Mac 上构建的。请注意,Jenkins 通常以自己的用户身份运行,这与您的用户不同。除非您以普通用户身份运行 Jenkins,否则这会导致很多问题。
-
我会尽快看看,谢谢建议
标签: jenkins continuous-integration cucumber automated-tests frank