19. Why Did We Adopt
Robot Framework?
• Human-readable test cases for
Maintainability
• Python and Java support for Versatility
• --rerunfailed for flaky tests
*** Test Cases ***
Add A Comment To An Article
[Tags] comment RAT
New An Article In Category
Add Comment To The Article 1 Times
Comment Count Of The Article Is 1
Reply A Comment To A Comment
[Tags] reply RAT
New An Article In Category
Add Comment To The Article 1 Times
Comment Count Of The Article Is 1
Reply To The Comment With Text Comment
Comment Should Be Included In Article
Vote Up To A Comment
[Tags] vote RAT
New An Article In Category
Add Comment To The Article 1 Times
Comment Count Of The Article Is 1
Vote The Comment With UP
22. Feeding Test
• Average 5,500 articles
imported a day
• Should ensure the input
stream
• Fake articles for testing
Thumbnail
Image
Video
Youtube
<?xml version='1.0' encoding='UTF-8'?>
<articles>
<UUID>c11ae751-b180-11e6-96c0-985aeb8c0520</UUID>
<time>1461117682767</time>
<article>
<ID>c11b1973-b180-11e6-8d03-985aeb8c0520</ID>
<nativeCountry>TW</nativeCountry>
<language>zh</language>
<startYmdtUnix>1479907723508</startYmdtUnix>
<endYmdtUnix>1571117682767</endYmdtUnix>
<title>20161123212843_all_medias</title>
<category> </category>
<publishTimeUnix>1479907723508</publishTimeUnix>
<contents>
<image>
<description>Mountain is beautiful!</description>
<url>yama_1.png</url>
</image>
<video>
<description>Kobe Top 1</description>
<thumbnail>thumbnail_1.jpg</thumbnail>
<url>kobe_1.mp4</url>
</video>
<video>
<description>Youtube</description>
<url>https://www.youtube.com/embed/c7rCyll5AeY</url>
</video>
<text>
<content> Google Google
Alphabet
Larry Page Alphabet Google Sundar Pichi
Google Larry Page
Google ......
Alphabet
</content>
</text>
</contents>
</article>
</articles>
23. CMS Test
• OA Digest
• Timeline Digest
• Category publication
• When new features are added,
basic functions should not fail
24. Front-end Test
• Selenium covers the most
• Appium for the mobile-only feature
• API test as a tool to generate testing
data
25. • Internal tools
iMON - application error
NSight - system error
• Health check script
Web response time
RabbitMQ management api
ElasticSearch cluster/node/stats/
status api
Service Monitoring