tag:blogger.com,1999:blog-53926699507917553112024-03-13T21:16:46.841+01:00Martijn Wargers Mozilla QA blogUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5392669950791755311.post-18162558138762875022014-10-27T13:22:00.002+01:002014-10-27T15:25:57.713+01:00T-Dose event in Eindhoven<div style="font-family: Helvetica,Arial,Verdana,sans-serif;">
Last Saturday and Sunday, I went to the <a href="http://www.t-dose.org/" target="_blank">T-Dose</a> <a href="https://reps.mozilla.org/e/t-dose/" target="_blank">event</a>, manning a booth with my good friend <a href="https://reps.mozilla.org/u/Mad_Maks/" target="_blank">Tim Maks van den Broek.</a><br />
<br />
I met a lot of of smart and interesting people:<br />
<ul>
<li>Someone with an NFC chip in his hand! I was able to import his contact details into my FirefoxOS phone by keeping it close to his hand. Very funny to see, but it also felt weird.</li>
<li><a href="http://en.wikipedia.org/wiki/Brama_Moolenaar" target="_blank">Bram Moolenaar</a> (VIM author! Note to self, never complain about software in front of people you don't know)</li>
<li>Some crazy enthusiastic people about Perl and more specifically, Perl 6. They even brought a camel! (ok, not a live one) </li>
</ul>
<br/><br/>
<h3>Often asked questions during the event</h3>
<dl style="text-decoration: underline;">Where can I phone with FirefoxOS? What price? </dl>
<dt>The only phone that you can buy online in the Netherlands, that is getting the latest updates, is the Flame device. You can order it on <a href="http://www.everbuying.com/product549652.html" target="_blank">everbuying.com</a>. More information on <a href="https://developer.mozilla.org/en-US/Firefox_OS/Developer_phone_guide/Flame" target="_blank">Mozilla Developer Network</a>. Because the phone will be shipped outside of the EU, import duties will be charged, which are probably somewhere around €40.</dt>
<dl style="text-decoration: underline;">Can I put Firefox OS on my Android device?</dl>
<dt>On <a href="https://developer.mozilla.org/en-US/Firefox_OS/Firefox_OS_build_prerequisites#Tier_2" target="_blank">MDN</a>, there are a couple of devices mentioned, but I wouldn't know how well that works. </dt>
<dl style="text-decoration: underline;">Is there a backup tool to backup on your desktop computer?</dl>
<dt>As far as I know, there is no backup software on the desktop computer, that would be able to make a backup of your Firefox OS phone. I know there is a <a href="https://github.com/Mozilla-TWQA/B2G-flash-tool/blob/master/backup_restore_profile.sh" target="_blank">command line tool from T</a><a href="https://github.com/Mozilla-TWQA/B2G-flash-tool/blob/master/backup_restore_profile.sh" target="_blank">aiwan QA</a> that allows you to backup and restore your profile. </dt>
<dl style="text-decoration: underline;">Does Whatsapp work on it?</dl>
<dt>There is no official Whatsapp, but there is an app called <a href="https://marketplace.firefox.com/app/connecta2" target="_blank">ConnectA2</a>, that allows you to connect with your Whatsapp contacts. I haven't used it, but Tim Maks told me it works reasonably well. </dt>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<img border="0" src="http://4.bp.blogspot.com/-Dxgx5PFscS8/VEupeQ4SVrI/AAAAAAAAQZU/Zv-8mw7tjuA/s1600/10633496_943980212282736_4450844213502938659_o.jpg" height="240" width="320" /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5392669950791755311.post-89240946727151290042014-08-19T20:32:00.002+02:002014-08-22T20:00:10.025+02:00Automated testing overviewHere is a very good overview of all the automated testing that is being done at Mozilla: <a href="https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing">https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing</a>.<br />
It's not complete and still needs some corrections and info perhaps, but it is already pretty useful (thank you Paolo Amadini!).
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5392669950791755311.post-61086901856641635042014-08-19T17:44:00.000+02:002014-08-22T19:58:11.400+02:00Tryserver logs and where are the subtest results logged?Any Mozilla developer will know about <a href="https://wiki.mozilla.org/Build:TryServer">Tryserver</a>, which is super-convenient to test whether patches don't cause test failures in some of the automated tests.<br />
However, there is a caveat, normally when you run a mochitest:
<br />
<pre><code>./mach mochitest-plain content/base/test/test_bug339494.xhtml</code></pre>
You get something like this as a result:<br />
<pre style="overflow: auto;"><samp>
96 INFO TEST-START | /tests/content/base/test/test_bug339494.xhtml
102 INFO TEST-PASS | /tests/content/base/test/test_bug339494.xhtml | Value check 1 - There should be no value
103 INFO TEST-PASS | /tests/content/base/test/test_bug339494.xhtml | Value check 2
104 INFO TEST-PASS | /tests/content/base/test/test_bug339494.xhtml | Reachability - We shouldn't have crashed
105 INFO TEST-PASS | /tests/content/base/test/test_bug339494.xhtml | Value check 3 - There should be a value
106 INFO TEST-PASS | /tests/content/base/test/test_bug339494.xhtml | Value check 4
107 INFO TEST-PASS | /tests/content/base/test/test_bug339494.xhtml | Value check 5
114 INFO TEST-OK | /tests/content/base/test/test_bug339494.xhtml | took 1230ms
</samp></pre>
<br />
In the tryserver logs, you would only see something like this:
<br />
<pre style="overflow: auto;"><samp>
10:07:12 INFO - 2260 INFO TEST-START | /tests/content/base/test/test_bug339494.xhtml
10:07:13 INFO - 2261 INFO ++DOMWINDOW == 23 (0x9af4ec30) [pid = 1874] [serial = 586] [outer = 0xa3992a30]
10:07:13 INFO - 2262 INFO TEST-OK | /tests/content/base/test/test_bug339494.xhtml | took 312ms
</samp></pre>
<br />
Where are all the subresults shown?<br />
On tryserver, those aren't shown at all anymore, see <a href="https://groups.google.com/forum/#!topic/mozilla.dev.platform/3QrMGjkH_o0">this dev.platform message</a>.<br />
This was done to reduce the runtime of the tests and to reduce the size of the logs.<br />
However, when a test failure happens, the last 100 messages of that test are logged on tryserver<br />
Sometimes, that may not be enough, though, in that case you can write this in your mochitest:
<br />
<pre><code>
SimpleTest.requestCompleteLog()
</code>
</pre>
This will make sure that everything will be logged on tryserver (or any other <a href="https://tbpl.mozilla.org/"><abbr title="Tinderboxpushlog">tbpl</abbr></a> machine).<br />
This was handy for me to find out what subtest wasn't logged in <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=928678">bug 928678</a>.
Unknownnoreply@blogger.com0