TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How Secret Used Automated Testing for Their Android Launch

38 pointsby weitingliuabout 10 years ago

6 comments

swansonabout 10 years ago
This is not terribly difficult to get running locally (at a smaller scale). Square has a tool called Spoon[0] that makes it really easy to run a test suite across a bunch of devices.<p>On a recent project, we had 5-7 devices plugged into a spare box that would run a test suite on every push. It worked out great and the ability to capture screenshots was really helpful for the design team to help spot strange UI issues. More details on the setup here: <a href="http:&#x2F;&#x2F;www.sep.com&#x2F;sep-blog&#x2F;2014&#x2F;01&#x2F;06&#x2F;android-robotium-and-spoon-a-practical-guide-for-testing-on-android-devices&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.sep.com&#x2F;sep-blog&#x2F;2014&#x2F;01&#x2F;06&#x2F;android-robotium-and-...</a><p>But if you need larger device coverage, Testmunk looks pretty awesome :)<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;square&#x2F;spoon" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;square&#x2F;spoon</a>
saclark11about 10 years ago
I appreciate TestMunk&#x27;s goal to make automated mobile testing easier and more accessible, and I truly hope they succeed in that, but for the love of testing, please do not view that example feature file at the bottom as an example of proper Gherkin.<p>It is riddled with implementation details and brittle explicit waits. To be fair, they did clearly state: &quot;we generally recommend against fixed waits&quot; but then please do not put this forth as an example to be copied. Scenarios should describe the behavior from a user perspective and leave out implementation details. You should not have to change the your Gherkin no matter how much the underlying implementation changes so long as the expected behavior remains the same. Not to mention the misuse of the Given&#x2F;When&#x2F;Then keywords and the &quot;I logout&quot; steps -- that is what before&#x2F;after hooks are for.<p>I also recognize TestMunk points out that this feature utilizes standard steps to get your first test cases going and to get some screenshots. They also advocate for the page object pattern, which is good, but it might be helpful to be clear that this is not how you&#x27;d actually want to write your Gherkin, whose true value comes when written with&#x2F;for product owners, free of implementation details.
评论 #9473437 未加载
tomasienabout 10 years ago
Secret did NOT get $35M in a Kickstarter campaign, it was venture capital. Or was that a joke I didn&#x27;t get?
评论 #9472594 未加载
tdumitrescuabout 10 years ago
Given I wait for 5 seconds<p>Then I press view with id &quot;splash_signin_text&quot;<p>Then I wait for 2 seconds<p>Then I clear input field number 1<p>Then I wait<p>...<p>Looks like someone never bothered understanding what Given&#x2F;When&#x2F;Then are for.
评论 #9473496 未加载
matthewcantyabout 10 years ago
I find the text hard to read on my screen. Does it have to be so gray?
CodeSheikhabout 10 years ago
It was like a mobile phones orchestra. Amazeballs.