Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Py3: manual tests on Debian 9 #1175

Closed
53 of 57 tasks
reszelaz opened this issue Jul 23, 2019 · 3 comments
Closed
53 of 57 tasks

Py3: manual tests on Debian 9 #1175

reszelaz opened this issue Jul 23, 2019 · 3 comments

Comments

@reszelaz
Copy link
Collaborator

reszelaz commented Jul 23, 2019

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)

  • Add the sys/tg_test/1/double_scalar attribute to the measurement
    group.
    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 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.

Test Sardana with TaurusGUI

  • Create the GUI using this guide
    • Pool name will be: Pool_demo2_1
    • Your element names may be different (depending on free aliases in your Tango database)

PMTV (PoolMotorTaurusValue)

  • Move motors from the slit panel in absolute and relative modes.
  • Show expert view.
  • Show compact mode.

macroexecutor

  • Execute ascan macro
  • Pause it in the middel and resume
  • Abort it
  • Add it to favorites
  • Run lsm macro
  • Execute ascan from favorites
  • Run lsmac macro
  • Execute ascan from history
  • Edit dscan macro in spock yellow line and run it
  • Restart macroexecutor application
  • Run lsm from history
  • Run ascan from favorites

sequencer

sardanaeditor

Note: There are known bugs on CentOS and Windows

  • Open sardanaeditor with macroserver name as argument.
  • Browse macro libraries and open an existing macro.
  • Edit existing macro and save & apply chaneges.
  • Execute macro to see if changes were aplied.
  • Create a new macro using template.
  • Execute the newly created macro.

MacroButton

  • Start macrobutton:
    python3 -m sardana.taurus.qt.qtgui.extra_macroexecutor.macrobutton door_demo2_1
  • Execute lsmac macro with default parameter value for filter (.*).
  • Execute ascanct macro.
  • Execute ascan macro and stop it with the macrobutton (after prior pausing and confirming stopping in the pop-up).
@cmft
Copy link

cmft commented Jul 26, 2019

BUG: Drag and drop does not work. One needs to input the attributes manually (remember to use complete URIs)

Fixed

@cmft
Copy link

cmft commented Jul 26, 2019

With edmac modify existing macro: ask_peak and run it to verify that the change
was applied.
...
TypeError: a bytes-like object is required, not 'str'

Fixed

@reszelaz
Copy link
Collaborator Author

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:

  1. online plot does not work - Qwt5 is not ported to python 3
  2. showscan does not work with PyMCA 5.1.3 (default package on Debian 9), one needs to install PyMCA 5.5.
  3. 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.

IMO the tests are satisfactory.

@reszelaz reszelaz mentioned this issue Jul 30, 2019
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants