TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How Secret Used Automated Testing for Their Android Launch

38 点作者 weitingliu大约 10 年前

6 条评论

swanson大约 10 年前
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>
saclark11大约 10 年前
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 未加载
tomasien大约 10 年前
Secret did NOT get $35M in a Kickstarter campaign, it was venture capital. Or was that a joke I didn&#x27;t get?
评论 #9472594 未加载
tdumitrescu大约 10 年前
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 未加载
matthewcanty大约 10 年前
I find the text hard to read on my screen. Does it have to be so gray?
CodeSheikh大约 10 年前
It was like a mobile phones orchestra. Amazeballs.