<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Carlos,</p>
<p>I think that's an excellent (implied) suggestion. <br>
</p>
<p>I know that FME has basically no frame-work for testing
"workspaces" (FME's equivalent of QGIS' "models") which makes
development somewhat hap-hazard. If QGIS had one, it would
certainly be a leg-up over the industry leader in this area. Last
time I used it ArcGIS didn't either, but that was quite a while
ago.</p>
<p>To answer the question - I believe at present with QGIS (and
ArcGIS too), you could export the model to Python and then do
conventional unit-tests that way. But it's a clunky way of doing
it.<br>
</p>
<p>To me at least this seems like it would be well suited to being
added to QGIS. It's not "sexy", but it's definitely useful.</p>
<p>Cheers,</p>
<p>Jonathan<br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 2018-07-04 07:55, Carlos Cámara
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHDKtzJkKJbTfwia6Sz4-u_Ck_dBb1njEAHFG0KDSjOohAhbnA@mail.gmail.com">
<div dir="ltr">
<div>Dear all,</div>
<div>
<div class="gmail-post-text">
<p>I am just starting with QGIS' processing to create some
complex model which makes quite a lot of changes and I
would like to know if there is a way to test my own model
while launching it, so if the tests fail, I can get a
notification and I will know that something went wrong
before I realize too late and I have to lose any changes I
made after executing the model with unexpected results.</p>
<p><strong>Example</strong>:</p>
<p>I am doing several joins and spatial joins. I learnt the
hard way that after triggering several times my model,
every time I was joining layers, new fields were added
with a <code>_1</code> appended to them in order not to
overwrite the previously created fields by mistake when I
repeated the model. It would be great to have some test
that either checked all the layer's fields or counted its
number and, if they weren't as expected, triggered an
alarm/dialog box or created a log file.</p>
</div>
Regards<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">Carlos
Cámara<br>
<a href="http://carloscamara.es" target="_blank"
moz-do-not-send="true">http://carloscamara.es</a><br>
</div>
</div>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
<br>
</body>
</html>