• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

前の記事のsnippets以外にも参考になった記事を集めておきます。

###Scenario, Features, Steps サンプル

  • シナリオやらいっぱい

http://itsignals.cascadia.com.au/?p=30

  • (ちょっと)冗長だけど参考になるシナリオ

http://github.com/aslakhellesoy/ba/blob/master/features/submit_proposal.feature

  • インスタンスのページを表示する(the post page)step
    /posts/1のページを表示するようなScenarioはどうかけばいいのん?と思っていたら、こんな風に書けるようです。

http://github.com/webjam/webjam/blob/d6b11f21ffabd224d26830c5b34839864d990c11/features/posts.feature
http://github.com/webjam/webjam/blob/d6b11f21ffabd224d26830c5b34839864d990c11/features/steps/posts_steps.rb

  • Open SourceでCucumber使っている例

http://wiki.github.com/aslakhellesoy/cucumber/examples

###Tutorials and Related Blog Posts

  • Tutorials and Related Blog Posts

http://wiki.github.com/aslakhellesoy/cucumber/tutorials-and-related-blog-posts

  • 20 articles on Cucumber and a free beverage recipe!

http://www.robbyonrails.com/articles/2009/04/09/20-articles-on-cucumber-and-a-free-beverage-recipe

###@variablesについての議論
http://www.ruby-forum.com/topic/181116

@userなどstep?scenario?にまたがる変数の使い方ですが、極力使わないのがスパゲッティ防止によさそうらしいです。900を超えるシナリオがある中で使ったけど、ポイント押さえて使えば大丈夫だったよというエピソードが出てきました。ただ、シーンに応じて使うのだったらありだろうというのが大方の見方かな。

###script/generate feature Article
body:stringなどとfieldも渡すと、それに応じてテーブルデータ等も生成してくれます:
http://d.hatena.ne.jp/amacou/20090127/1233058682

###Cookieの値が保持されないworkaround
http://stackoverflow.com/questions/681183/how-to-handle-cookies-when-testing-with-webrat

The workaround is use Webrat with Selenium back end. It runs all tests in a separate Firefox window, so cookies or javascript is not a problem. The downside is extra time and resources required to run Firefox and do all the real clicks, rendering etc.

他にもhackishなworkaroundが紹介されていました。

posted by satoko satoko on Fri 17 Apr 2009 at 05:11 with 0 comments
Contents rssrss
NSAssertやNSLogを無効にする:-DNS_BLOCK_ASSERTIONS=1とNS_BLOCK_ASSERTIONS
GDBでview.frameを表示させる
Core Animationについてのリンク集
[iPhone] new BSDライセンスについてライセンス引用のメモ
Implementing a Container View Controller in UIViewController Class Reference
UITableView用のNSIndexPathの作り方
Xcodeのテンプレート、View-based ApplicationとWindow-based Applicationの違い
CopyOnSelectのLion対応
Xcode4のCode Snippetsを別のPCに移動する+gitで管理する
[iPhone] Singleton: iOS4以降はGCDのdispatch_onceを使う
Tags
iphone開発gitIBInterfaceBuilderiOSSIMBLSnippetsterminaltwitterxcodeXcode4
Comments rssrss
https://stosastudio.ru/catalog/kuhni-lounge/ https://stosastudio.ru/catalog/kuhni-lounge/: Фабрика Tessarolo https://stosastudio.ru/vybiraem-... 04/06 08:14
KingofSmack KingofSmack: Here also good reads for this mobile application d... 05/10 18:02
satoko satoko: stackoverflowでも同じエラーを挙げている人がいたので、1.3でアップロードしたよってコメ... 12/13 03:36
ujihisa ujihisa: :%s/blog/glob/g 07/28 16:41
satoko satoko: しゅが〜様 返事が遅くなって申し訳ありません。また、投稿百景ご購入ありがとうございます。 『po... 10/11 14:05
しゅが~ しゅが~: こんにちは。投稿百景を発売日翌日から利用しています。本当にいいAppを作っていただきました。罫線絵文... 10/08 00:38
satoko satoko: 情報ありがとうございます!コミットを再利用するの部分、文章が不明瞭ですね。ちょっと修正します。教えて... 09/25 14:32
ono ono: 後で確認したら、ファイルの除外はamendではできないですね、失礼しました。alias は、'-C ... 09/25 10:47