https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842017-08-07T13:01:53ZopenSUSE Project Management ToolopenQA Tests - action #21052: [qam] test fails in shotwell_export - failure on first launchhttps://progress.opensuse.org/issues/21052?journal_id=592702017-08-07T13:01:53Zdasantiagodasantiago@suse.com
<ul></ul><p>This test is missing an:</p>
<p>assert_screen 'shotwell-first-launch';<br>
wait_screen_change { send_key "ret"; };</p>
<p>This is happening because the build will run 3 tests in order:</p>
<ul>
<li>shotwell_import</li>
<li>shotwell_edit</li>
<li>shotwell_export</li>
</ul>
<p>On shotwell_import it's ok, but on shotwell_edit the test is invoking the function clean_shotwell, that will remove the folder "/home/$username/.local/share/shotwell", making again necessary to assert the initial screen.</p>
<p>So either we remove the invocation from shotwell_edit, or we assert the screen in shotwell_export.</p>
openQA Tests - action #21052: [qam] test fails in shotwell_export - failure on first launchhttps://progress.opensuse.org/issues/21052?journal_id=613382017-08-30T10:19:22Zpluskalmmpluskal@suse.com
<ul><li><strong>Assignee</strong> set to <i>vsvecova</i></li></ul> openQA Tests - action #21052: [qam] test fails in shotwell_export - failure on first launchhttps://progress.opensuse.org/issues/21052?journal_id=617942017-09-05T17:26:16Zvsvecovaveronika.svecova@suse.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>80</i></li></ul><p>I agree with Petr's original comment. Upon opening the application, the first shotwell module (<code>shotwell_import</code>) handles the first-launch window and closes it, while the next two modules (<code>shotwell_edit</code> and <code>shotwell_export</code>) do not expect the welcome window any more and merely assert that the application is launched.</p>
<p>When everything goes well, the welcome screen does not appear any more, even though every shotwell* module calls <code>clean_shotwell()</code> at the end, because the clean function only removes shotwell library files and does not reset shotwell completely.</p>
<p>However, if any of the previous modules fail, the SUT state is restored to the last anchored snapshot, which in this case is right after <code>boot_to_desktop</code>, therefore the next shotwell* module after the failure behaves again as first launch and the welcome window appears again.</p>
<p>I opted for removing the code to start shotwell out of the individual shotwell* tests and instead added a <code>start_shotwell()</code> function into the x11regression library, in accordance with the DRY principle. The function starts the application and subsequently checks whether there is a welcome window pop up, in order to prevent failures when the state is restored from the last good snapshot.</p>
<p>PR: <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/3530" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/3530</a></p>
<p>Verification runs:<br>
SLED12 SP2: <a href="http://dreamyhamster.suse.cz/tests/746" class="external">http://dreamyhamster.suse.cz/tests/746</a><br>
SLED12 SP3: <a href="http://dreamyhamster.suse.cz/tests/744" class="external">http://dreamyhamster.suse.cz/tests/744</a><br>
Note that in both runs, the shotwell_edit module fails due to another issue (21048), however, the following module, <code>shotwell_export</code>, detects the welcome screen and runs fine.</p>
<p>Needles MR: Not applicable - no new needles were needed.</p>
openQA Tests - action #21052: [qam] test fails in shotwell_export - failure on first launchhttps://progress.opensuse.org/issues/21052?journal_id=619142017-09-06T11:58:54Zvsvecovaveronika.svecova@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>80</i> to <i>100</i></li></ul><p>The shotwell tests are now working as expected in production:</p>
<p>SLED12 SP2: <a href="https://openqa.suse.de/tests/1148427#step/shotwell_export/4" class="external">https://openqa.suse.de/tests/1148427#step/shotwell_export/4</a><br>
SLED12 SP3: <a href="https://openqa.suse.de/tests/1148275#step/shotwell_export/4" class="external">https://openqa.suse.de/tests/1148275#step/shotwell_export/4</a></p>
<p>The failure in shotwell_edit is unrelated to this issue and is owing to poo#21048.</p>