# Release on BornAgain

file:///usr/share/doc/bornagain/html/dev/release/index.html Recent content in Release on BornAgain Hugo en-us

# Manual GUI test

file:///usr/share/doc/bornagain/html/dev/release/test.html Mon, 01 Jan 0001 00:00:00 +0000 file:///usr/share/doc/bornagain/html/dev/release/test.html <h2 id="manual-gui-test">Manual GUI test</h2> <p>Repeat tests on all platforms.</p> <p>Only importing samples from Python examples is worth repeating for different Python versions.</p> <p>All steps are given in order of execution.</p> <h3 id="backward-compatibility">Backward compatibility</h3> <ul> <li>open projects from <a href="https://jugit.fz-juelich.de/mlz/bornagain/-/tree/r23/Tests/GUIprojects">Tests/GUIprojects</a></li> <li>for each project check that all parameters are loaded and represented properly</li> <li>check that jobs are loaded</li> <li>rerun all jobs and ensure that the new simulation results look as expected</li> <li>repeat simulations for each instrument choosing it from the list in &ldquo;Simulation&rdquo; view</li> <li>close GUI</li> </ul> <h3 id="importing-samples-from-python">Importing samples from Python</h3> <ul> <li>install Python package</li> <li>open GUI application</li> <li>open new project</li> <li>go to &ldquo;Sample&rdquo; view and load one example from <a href="https://jugit.fz-juelich.de/mlz/bornagain/-/tree/r23/auto/Examples/specular">specular</a> and one from <a href="https://jugit.fz-juelich.de/mlz/bornagain/-/tree/r23/auto/Examples/scatter2d">scatter2d</a></li> </ul> <h3 id="pure-simulation">Pure simulation</h3> <ul> <li>switch to &ldquo;Instrument&rdquo; view</li> <li>create instances of &ldquo;GISAS&rdquo;, &ldquo;Offspecular&rdquo;, &ldquo;Specular&rdquo; and &ldquo;Depthprobe&rdquo; instruments with default parameters</li> <li>switch to &ldquo;Simulation&rdquo; view</li> <li>create simulations: <ul> <li>with &ldquo;scatter2d&rdquo; example for &ldquo;GISAS&rdquo; and &ldquo;Offspecular&rdquo;</li> <li>with &ldquo;specular&rdquo; example for &ldquo;Specular&rdquo; and &ldquo;Depthprobe&rdquo;</li> </ul> </li> <li>switch to &ldquo;Instrument&rdquo; view</li> <li>add distributions: <ul> <li>lambda, alpha and phi to GISAS instrument</li> <li>lambda, alpha to Specular instrument</li> </ul> </li> <li>switch to &ldquo;Simulation&rdquo; view</li> <li>turn on simulation options &ldquo;Average layer material for Fresnel calculations&rdquo; and &ldquo;Include specular peak&rdquo;</li> <li>repeat simulations with distributions</li> <li>export simulations as script and run them in Python as is</li> </ul> <h3 id="data-loading">Data loading</h3> <ul> <li>switch to &ldquo;Data&rdquo; view</li> <li>load 1D data from <a href="https://jugit.fz-juelich.de/mlz/intern/ba-intern/-/blob/main/expdata/Reflectivity_from_Ni_film/Ni_LabCourse_R(Q).txt">ba-intern</a>, units: 1/A <ul> <li>data should be loadable with default loader settings</li> <li>look at the plot axes, labels, units, values should be correct</li> <li>link 1D data to the &ldquo;Specular&rdquo; instrument, click &ldquo;Yes, please modify instrument&rdquo; if asked</li> <li>switch to &ldquo;Specular&rdquo; instrument in &ldquo;Instrument&rdquo; view</li> <li>check that scan points are picked from the loaded data and non-editable</li> <li>open &ldquo;Properties&rdquo; panel and check that axis units are switchable after linking</li> </ul> </li> <li>load 2D (REFSANS filter) data from <a href="https://jugit.fz-juelich.de/mlz/intern/ba-intern/-/blob/main/expdata/REFSANS_example/p15101_00008744_8_16.csv">ba-intern</a> <ul> <li>switch to &ldquo;Mask Editor&rdquo; presentation and add a mask</li> <li>link 2D data to the &ldquo;GISAS&rdquo; instrument, click &ldquo;Yes, please modify instrument&rdquo; if asked</li> <li>open &ldquo;Properties&rdquo; panel and check that axis units are switchable after linking</li> </ul> </li> </ul> <h3 id="simulation-with-data">Simulation with data</h3> <ul> <li>specular simulation: <ul> <li>switch to &ldquo;Simulation&rdquo; view</li> <li>choose specular instrument with corresponding sample and 1D data</li> <li>simulate</li> <li>check that both curves are given at the same argument points</li> </ul> </li> <li>GISAS simulation: <ul> <li>switch to &ldquo;Simulation&rdquo; view</li> <li>choose GISAS instrument with corresponding sample and 2D data</li> <li>simulate</li> <li>check that all color maps have the same range and scale</li> <li>check that mask is present in both simulation and loaded data</li> </ul> </li> </ul> <h3 id="save-and-load">Save and load</h3> <ul> <li>save the project</li> <li>close GUI</li> <li>open GUI</li> <li>open the project</li> <li>check that everything is loaded correctly</li> </ul>