<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Atomic challenge - part 2</title>
	<link>http://blogs.mathworks.com/pick/2008/11/07/atomic-challenge-part-2/</link>
	<description>&#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=969735&#38;objectType=author"&#62;Bob&#60;/a&#62;, &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author"&#62;Brett&#60;/a&#62; &#38; &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author"&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<pubDate>Mon, 23 Nov 2009 01:00:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Bob</title>
		<link>http://blogs.mathworks.com/pick/2008/11/07/atomic-challenge-part-2/#comment-12927</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Mon, 10 Nov 2008 15:03:38 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/11/07/atomic-challenge-part-2/#comment-12927</guid>
		<description>Thanks for the great comments and some clever ideas. Let's keep the discussion going...

Does anyone use the &lt;a href="http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/f9-17018.html#f9-17087" rel="nofollow"&gt;profiler&lt;/a&gt; for &lt;a href="http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/f9-6232.html#f9-6132" rel="nofollow"&gt;coverage analysis&lt;/a&gt;?

Dialogs are indeed pesky critters. Does anyone have a trick for using scripts to verify dialog behavior? Suppose automation is not possible. What are the alternatives?

Daniel provided "white box" insight (not surprisingly) to the modules that need testing. Let's see if we can list some test cases...</description>
		<content:encoded><![CDATA[<p>Thanks for the great comments and some clever ideas. Let&#8217;s keep the discussion going&#8230;</p>
<p>Does anyone use the <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/f9-17018.html#f9-17087" rel="nofollow">profiler</a> for <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/f9-6232.html#f9-6132" rel="nofollow">coverage analysis</a>?</p>
<p>Dialogs are indeed pesky critters. Does anyone have a trick for using scripts to verify dialog behavior? Suppose automation is not possible. What are the alternatives?</p>
<p>Daniel provided &#8220;white box&#8221; insight (not surprisingly) to the modules that need testing. Let&#8217;s see if we can list some test cases&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Armyr</title>
		<link>http://blogs.mathworks.com/pick/2008/11/07/atomic-challenge-part-2/#comment-12926</link>
		<dc:creator>Daniel Armyr</dc:creator>
		<pubDate>Mon, 10 Nov 2008 07:50:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/11/07/atomic-challenge-part-2/#comment-12926</guid>
		<description>Whenever I am developing an algorithm and feel particularly ambitious, I make a test script where each cell is a test case and ends in an assert. That way, I can easilly iterate over any test case that is failing, and finally publish a report when the algorithm is done.

In this case, there are several things that would need testing, all of which are non-trivial.

1) Testing that the getCurrentTimeDelta does the right thing. This is virtually impossible unless one has another atomic clock implementation to compare against, and even so it is difficult.

2)Test that the timer object works properly. This could be done by swapping out the dialog box for something else, setting the atmic delta to 0 and then clocking the time untill our callback is called.

3) Testing that the dialog box works. Plain difficult, as all GUI testing is.

--DA</description>
		<content:encoded><![CDATA[<p>Whenever I am developing an algorithm and feel particularly ambitious, I make a test script where each cell is a test case and ends in an assert. That way, I can easilly iterate over any test case that is failing, and finally publish a report when the algorithm is done.</p>
<p>In this case, there are several things that would need testing, all of which are non-trivial.</p>
<p>1) Testing that the getCurrentTimeDelta does the right thing. This is virtually impossible unless one has another atomic clock implementation to compare against, and even so it is difficult.</p>
<p>2)Test that the timer object works properly. This could be done by swapping out the dialog box for something else, setting the atmic delta to 0 and then clocking the time untill our callback is called.</p>
<p>3) Testing that the dialog box works. Plain difficult, as all GUI testing is.</p>
<p>&#8211;DA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://blogs.mathworks.com/pick/2008/11/07/atomic-challenge-part-2/#comment-12925</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 07 Nov 2008 13:25:20 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/11/07/atomic-challenge-part-2/#comment-12925</guid>
		<description>I am very interested in hearing about what others do.  Especially given the modal dialog - I haven't found a good way to test scripts that have dialogs, whether Matlab, figure, Java, or Simulink masks.

For other scripts I don't have a consistent way.

Sometimes I play around with it until I'm satisfied.

Sometimes I have a test script that I may or may not archive.

Sometimes I have the script look for the inputs - if the only input is the string 'SelfTest' I call a subfunction that contains all of the test cases, calling the main function recursively.  These are usually the best maintained test cases.

Unfortunately, while I've used the Profiler to check the performance of the test cases, I usually forget to use the Profiler highlighting to check the coverage of the test cases.  Does anyone use the Profiler output for coverage analysis?</description>
		<content:encoded><![CDATA[<p>I am very interested in hearing about what others do.  Especially given the modal dialog - I haven&#8217;t found a good way to test scripts that have dialogs, whether Matlab, figure, Java, or Simulink masks.</p>
<p>For other scripts I don&#8217;t have a consistent way.</p>
<p>Sometimes I play around with it until I&#8217;m satisfied.</p>
<p>Sometimes I have a test script that I may or may not archive.</p>
<p>Sometimes I have the script look for the inputs - if the only input is the string &#8216;SelfTest&#8217; I call a subfunction that contains all of the test cases, calling the main function recursively.  These are usually the best maintained test cases.</p>
<p>Unfortunately, while I&#8217;ve used the Profiler to check the performance of the test cases, I usually forget to use the Profiler highlighting to check the coverage of the test cases.  Does anyone use the Profiler output for coverage analysis?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
