B2G/QA/GaiaAutomation: Difference between revisions

From MozillaWiki
< B2G‎ | QA
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
<h3>  
<h3>  
<p> Step1: go to gaia repo </p>
<p> Step1: go to gaia repo </p>
<h4>
<pre class="_fck_mw_lspace">cd B2G/gaia
<pre class="_fck_mw_lspace">cd B2G/gaia
</pre>
</pre>
</h4>
</h3>
<h3>
<p> Step2: Make sure gaia is up-to-date </p>
<p> Step2: Make sure gaia is up-to-date </p>
</h3>
<h4>
<pre class="_fck_mw_lspace">git pull
<pre class="_fck_mw_lspace">git pull
</pre>
</pre>
<pre class="_fck_mw_lspace">git pull b2g master
<pre class="_fck_mw_lspace">git pull b2g master
</pre>
</pre>
<p> Step3: Forwad </p>
</h4>
<h3>
<p> Step3: Flash the up-to-date gaia </p>
</h3>
<h4>
<pre class="_fck_mw_lspace">DEBUG=1 make install-gaia
</pre>
<p> If meet a "Unable to connect" page, try
</p>
<pre class="_fck_mw_lspace">make install-gaia
</pre>
</h4>
<h3>
<p> Step4: Forwad </p>
</h3>
<h4>
<pre class="_fck_mw_lspace">adb forward tcp:2828 tcp:2828
<pre class="_fck_mw_lspace">adb forward tcp:2828 tcp:2828
</pre>
</pre>
<p> Step4: Doing Test </p>
</h4>
<h3>
<p> Step5: Doing Test </p>
</h3>
<h4>
<pre class="_fck_mw_lspace">make test-integration
<pre class="_fck_mw_lspace">make test-integration
</pre>
</pre>
<p><br />
<p>All the test files are written in javascript and placed in the B2G/gaia/apps/system/test/integration <br>
  Only the file name in the *_test.js format will be execute
</p>
</p>
</h4>
<h3>
<p>Just try it now! </p>
</h3>

Latest revision as of 21:43, 6 August 2012


Introduction

There is a simple step for Gaia-Automation Test

Step

Assume you have already built your own b2g system for mobile phone and the phone is connected to computer

Step1: go to gaia repo

cd B2G/gaia

Step2: Make sure gaia is up-to-date

git pull
git pull b2g master

Step3: Flash the up-to-date gaia

DEBUG=1 make install-gaia

If meet a "Unable to connect" page, try

make install-gaia

Step4: Forwad

adb forward tcp:2828 tcp:2828

Step5: Doing Test

make test-integration

All the test files are written in javascript and placed in the B2G/gaia/apps/system/test/integration
Only the file name in the *_test.js format will be execute

Just try it now!