テック
STFを使ってみた

<p>この間参加したSelenium勉強会で知ったSTF (Smartphone test farm)とやらを試しに使ってみました。</p>
<p>STFについて詳しくはこちら。</p>
<p><a href="https://openstf.io/">STF | Smartphone Test Farm</a></p>
<p><iframe class="embed-card embed-webcard" frameborder="0" scrolling="no" src="//hatenablog-parts.com/embed?url=https%3A%2F%2Fgithub.com%2Fopenstf%2Fstf" style="display: block; width: 100%; height: 155px; max-width: 500px; margin: 10px 0px;" title="openstf/stf"></iframe><cite class="hatena-citation"><a href="https://github.com/openstf/stf">github.com</a></cite></p>
<p>簡単に言うと、AWS device farmとかPerfecto mobileのmobile cloudのOSS版で、localにそんなサービスを立ち上げられる。</p>
<p>Githubに書いてある通り、Macなら簡単にセットアップが終わります。</p>
<p>1. 依存関係のあるmoduleのインストール。</p>
<pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; line-height: 1.45; padding: 16px; border-radius: 3px; word-wrap: normal; word-break: normal; color: #333333; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7;">brew install rethinkdb graphicsmagick zeromq protobuf yasm pkg-config</pre>
<p><br/>2. stfをインストール</p>
<pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; line-height: 1.45; padding: 16px; border-radius: 3px; word-wrap: normal; word-break: normal; color: #333333; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7;">npm install -g stf</pre>
<p>3. rethinkdbを動かす (8080 portはjenkinsで使っていたので、8081に変えてます。)</p>
<pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; line-height: 1.45; padding: 16px; border-radius: 3px; word-wrap: normal; word-break: normal; color: #333333; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7;">rethinkdb --http-port 8081</pre>
<p class="p1">4. stf 起動</p>
<pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; line-height: 1.45; padding: 16px; border-radius: 3px; word-wrap: normal; word-break: normal; color: #333333; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7;">stf local</pre>
<p class="p1">で、おしまい。</p>
<p class="p1">遅延もなく良い感じに使えそうです。</p>
<p class="p1">社内でデバイスを良い感じに共有できそう。</p>


