Closed aureocarneiro closed 4 years ago
I have finished the tests. IMO the results are satisfactory. There is only one thing which got worse with respect to the previous releases. Now we are not able to execute the tests - these crash the pytest process as soon as we run tests which start and stop Tango DS. This was already problematic when running tests with unittest - see #540. I would not try to fix it now. The idea is to use the PyTango MultiDeviceTestContext
soon.
This is an issue for checking the Jul20 release in Windows 10
Installation
Create testing environment and run testsuite
Pool demo2
.MacroServer demo2
PyTango.DeviceProxy('macroserver/demo2/1').put_property({'MacroPath':'<path_to_sardana_installation_dir>/macroserver/macros/examples'})
spock --profile=demo2
- Problem1: traceback appearing when creating new spock profile. This bug also existed in previous releases: https://github.com/sardana-org/sardana/issues/536 - Problem2: cannot exit spock doing 'exit()', even if after I use 'Ctrl+C'. This bug also existed in previous releases: https://github.com/sardana-org/sardana/issues/724sar_demo
macro.<path_to_sardana_installation_dir>/sardanacustomsettings.py
to point to the demo2 door e.g.UNITTEST_DOOR_NAME = "door/demo2/1"
sardanatestsuite
Problem: execution of tests starts promissing, however after receiving the python crashed pop-ups the tests are not able to continue. Similar issues were already existing in previous release tests: #540, but the testsuite was able to continue if one was closing the pop-up windows. What has changed now is that we are using the pytest instead of the unittest.Test Sardana using Spock and expconf
ask_for_moveable
,ask_peak
umvr
macro and verify that the position updates arrives./tmp/
on LinuxC:\Users\<username>\tmp
on Windows and ScanFile to:demo1.h5, demo1.dat
.sys/tg_test/1/ampli
attribute.sys/tg_test/1/double_scalar
attribute to the measurement group.senv JsonRecorder True
).showscan
and access to the last scan data. - Problem: traceback appearing when opening showscan. This bug also existed in previous releases: https://github.com/sardana-org/sardana/issues/910edmac
modify existing macro:ask_peak
and run it to verify that the change was applied. Note: It isMacroPath
sensitive. Use\
as path separator.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. Note: It isMacroPath
sensitive. Use\
as path separator.Test Sardana with TaurusGUI
$ taurus newgui
demo2
MS and Door name$ MyGui
PMTV (PoolMotorTaurusValue)
taurus form
with all slit related motorsmacroexecutor
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 sequenceMacroButton
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).sardanaeditor
Note: There are known bugs on CentOS and Windows Problem: sardanaeditor does not work with the latest spyder: #909