You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
This issue is for running manual tests of #1173 on Debian 9. While testing I will try to extend the manual test scenarios.
Installation
Install Sardana (on Linux from the tar.gz : pip install <tarball_artifact_URL>
and on Windows from MSI)
Create testing environment and run testsuite
Start Pool demo2. In a console do Pool demo2.
Start MacroServer demo2 and connect to the Pool demo2.
In another console do: MacroServer demo2
Set MacroServer's MacroPath to point to the macro examples.
In another IPython console do: PyTango.DeviceProxy('macroserver/demo2/1').put_property({'MacroPath':'<path_to_sardana_installation_dir>/macroserver/macros/examples'})
Restart MacroServer e.g. Ctrl+C in the MacroServer's console and
start it again.
Create spock profile demo2. In another console do spock --profile=demo2
In spock run sar_demo macro.
Edit <path_to_sardana_installation_dir>/sardanacustomsettings.py
to point to the demo2 door e.g. UNITTEST_DOOR_NAME = "door/demo2/1"
Run testsuite. In another console do sardanatestsuite
Test Sardana using Spock and expconf
Test interactive macros from spock e.g. ask_for_moveable, ask_peak
Execute umvr macro and verify that the position updates arrives.
In expconf configure scan files by setting ScanDir to: /tmp/ on Linux C:\Users\<username>\tmp on Windows and ScanFile to: demo1.h5, demo1.dat.
Configure online plot to show counters: On expconf GUI select for all
the counter channels, Plot Type 'Spectrum' and Plot Axes '<mov>'
Configure snapshot group: with a motor and the sys/tg_test/1/ampli
attribute. BUG: Drag and drop does not work. One needs to input the attributes manually (remember to use complete URIs)
Open online plot (This should ask to enable JsonRecorder, set it to true. Otherwise enable it in spock: senv JsonRecorder True).
Run step scan
Verify that records appear in spock output.
Verify that records were stored in scan files.
Verify that records were plotted on the online plot
Run showscan and access to the last scan data. BUG: most probably due to bug (bytes-string conversion) in PyMCA. Present in PyMCA 5.1.3 but according to @cmft not in PyMCA 5.5. See exception
With edmac modify existing macro: ask_peak and run it to verify that the change
was applied. BUG: edmac does not appear due to lack of bytes-string conversion
With edmac create a new macro in a new macro library: edmac my_macro <path_to_sardana_installation_dir>/macroserver/macros/examples/my_macros.py
and run it.
The manual tests on Debian 9 are done now. Few issues were discovered and were already fixed by @cmft, thanks!
I have also extended the manual test guide with some tests of MacroButton.
There are the following known issues:
online plot does not work - Qwt5 is not ported to python 3
showscan does not work with PyMCA 5.1.3 (default package on Debian 9), one needs to install PyMCA 5.5.
In order to make the MacroServer environment work properly I was forced to use the gdbm backend of shelve instead of the ndbm. This requires installation of python3-gdbm package.
This issue is for running manual tests of #1173 on Debian 9. While testing I will try to extend the manual test scenarios.
Installation
pip install <tarball_artifact_URL>
and on Windows from MSI)
Create testing environment and run testsuite
Pool demo2
.In another console do:
MacroServer demo2
In another IPython console do:
PyTango.DeviceProxy('macroserver/demo2/1').put_property({'MacroPath':'<path_to_sardana_installation_dir>/macroserver/macros/examples'})
start it again.
spock --profile=demo2
sar_demo
macro.<path_to_sardana_installation_dir>/sardanacustomsettings.py
to point to the demo2 door e.g.
UNITTEST_DOOR_NAME = "door/demo2/1"
sardanatestsuite
Test Sardana using Spock and expconf
Test interactive macros from spock e.g.
ask_for_moveable
,ask_peak
Execute
umvr
macro and verify that the position updates arrives.In expconf configure scan files by setting ScanDir to:
/tmp/
on LinuxC:\Users\<username>\tmp
on Windows and ScanFile to:demo1.h5, demo1.dat
.Configure online plot to show counters: On expconf GUI select for all
the counter channels, Plot Type 'Spectrum' and Plot Axes '<mov>'
Configure snapshot group: with a motor and the
sys/tg_test/1/ampli
attribute.
BUG: Drag and drop does not work. One needs to input the attributes manually (remember to use complete URIs)Add the
sys/tg_test/1/double_scalar
attribute to the measurementgroup.
BUG: Pop-up with the following changes is raised and should not be - expconf shows external changes pop-up when adding external attribute to meas. grp. #1176 (already present in develop)Open online plot (This should ask to enable JsonRecorder, set it to true. Otherwise enable it in spock:
senv JsonRecorder True
).Run step scan
Verify that records appear in spock output.
Verify that records were stored in scan files.
Verify that records were plotted on the online plot
Run
showscan
and access to the last scan data.BUG: most probably due to bug (bytes-string conversion) in PyMCA. Present in PyMCA 5.1.3 but according to @cmft not in PyMCA 5.5. See exception
With
edmac
modify existing macro:ask_peak
and run it to verify that the changewas applied.
BUG: edmac does not appear due to lack of bytes-string conversionWith
edmac
create a new macro in a new macro library:edmac my_macro <path_to_sardana_installation_dir>/macroserver/macros/examples/my_macros.py
and run it.
Test Sardana with TaurusGUI
Pool_demo2_1
PMTV (PoolMotorTaurusValue)
macroexecutor
ascan
macrolsm
macroascan
from favoriteslsmac
macroascan
from historydscan
macro in spock yellow line and run itlsm
from historyascan
from favoritessequencer
ascan
macro to the sequencelsct
macro as apost-acq
hook ofascan
dscan
macro to the sequenceNote: new sequences cannot always be created sequencer action buttons (new & save) state is inconsistent (SF#460) #305
sardanaeditor
Note: There are known bugs on CentOS and Windows
MacroButton
python3 -m sardana.taurus.qt.qtgui.extra_macroexecutor.macrobutton door_demo2_1
lsmac
macro with default parameter value for filter (.*
).ascanct
macro.ascan
macro and stop it with the macrobutton (after prior pausing and confirming stopping in the pop-up).The text was updated successfully, but these errors were encountered: