More Related Content
Similar to Functional Testing in #YAPCASIA
Similar to Functional Testing in #YAPCASIA (20)
Functional Testing in #YAPCASIA
- 35. クライアント プロダクト
.NET
Web
.NET
DB
- 36. クライアント プロダクト
.NET
Web
.NET
F# DB
テスト
- 39. イメージ
doTest[
testCase(“マスタの設定がおかしいときにエラーを返す”)
|> prepare db truncate masterTable
|> action(httpPost “http://localhost/AAA” [“content-type”,”text/plain”]
“errorBody”)
|> check(status equals 204)
|> check(xmlBody contains “root/child[text()=‘error’]”)
testCase(“マスタの設定が正しいときにトップページを返す”)
|> prepare db insert masterTable [“col1”,”XXX”;”col2”,”YYY”]
|> action(httpGet “http://localhost/”)
|> check(status equals 200)
|> check(xmlBody contains “root/child[text()=‘top’]”)
]
Editor's Notes
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n