capybara-webkit を使用して Web ページで個別の ajax リクエストの応答を取得するには?
各リクエストの応答時間を取得するために利用できる特定の方法はありますか?
注:rspecでカピバラを使用しています。
例: Web ページに 3 つの Ajax リクエストがあります。各リクエストの応答時間と Web ページ全体の応答時間を別々に取得する必要があります。
ありがとう、プリヤ
capybara-webkit を使用して Web ページで個別の ajax リクエストの応答を取得するには?
各リクエストの応答時間を取得するために利用できる特定の方法はありますか?
注:rspecでカピバラを使用しています。
例: Web ページに 3 つの Ajax リクエストがあります。各リクエストの応答時間と Web ページ全体の応答時間を別々に取得する必要があります。
ありがとう、プリヤ
Generally it's not possible since webserver is running in the different process but you could create a custom rack middle-ware and dump all responses to the separate log file. For the beginning you could implement technique described here: https://gist.github.com/2975611 and for dumping headers you could use some code snippets from http://rack.rubyforge.org/doc/Rack/ContentLength.html