<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tofucodes</author_name>
  <author_url>https://blog.hatena.ne.jp/tofucodes/</author_url>
  <blog_title>tofucodes diary</blog_title>
  <blog_url>https://tofucodes.hatenablog.jp/</blog_url>
  <categories>
    <anon>architecture</anon>
    <anon>pattern</anon>
    <anon>testing</anon>
  </categories>
  <description>E2EテストのデザインパターンとしてPageObjectというものがあります。 今回はPageObject自体の説明は省きますが、簡潔に述べるとWebページなどの詳細（idとかclassとかDOM階層とかとか）を隠して利用側（テストコード）が利用しやすいインターフェースを提供する役目という認識です私は。 より詳しい内容はマーティン・ファウラーのブログをご参照ください。 www.martinfowler.com さて表題の件ですが、テストを書いているとアサーションをどこで持つべきかという課題にぶち当たります。 シンプルな例 AppiumによるiOS/AndroidアプリへのE2Eテストを例に挙げ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftofucodes.hatenablog.jp%2Fentry%2F2021%2F06%2F26%2F175531&quot; title=&quot;E2EテストのアサーションをテストコードとPageObjectどちらに持つべきかという話 - tofucodes diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-26 17:55:31</published>
  <title>E2EテストのアサーションをテストコードとPageObjectどちらに持つべきかという話</title>
  <type>rich</type>
  <url>https://tofucodes.hatenablog.jp/entry/2021/06/26/175531</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
