1
我會寫什麼測試來查看給定記錄的thumbnailURL屬性是否存在?如何測試xsl中是否存在以下屬性?
<record last-modified="Wed, 16 Oct 2013 13:07:24 EDT" mimetype="text/html" url="someURL">
<metadata>
<meta content="Planning" name="title"/>
<meta content="12345" name="ccsid"/>
<meta content="user1234" name="author"/>
<meta content="Wed Oct 16 13:07:24 EDT 2013" name="pubDate"/>
<meta content="planning" name="categories"/>
<meta content="http://thumbnail_182x136.jpg" name="thumbnailURL"/>
</metadata>
<content>
Some description
</content>
</record>