Menu

release-tests

How to create testing environment and run testsuite

  1. Install Sardana.
  2. Start Pool demo2.
  3. Start MacroServer demo2 (connect to the Pool demo2).
  4. Set MacroServer MacroPath to <sardana>/macroserver/macros/examples
    (from Ipython, do : PyTango.DeviceProxy('<macroserver>').put_property({'MacroPath':'<sardana>/macroserver/macros/examples'})
  5. Restart MacroServer (or call Init)?
  6. Create spock profile demo2. (spock --profile=demo2)
  7. Run sar_demo macro.
  8. Edit sardanacustomsettings.py to point to the correct door (demo2) and run testsuite.

Testing Sardana using spock

  1. Test interactive macros from spock: ask_for_moveable, ask_peak
  2. Execute umvr macro and observer the position updates.
  3. Test expconf:
    1. Configure scan files using expconf set ScanDir to: /tmp/ and ScanFile to: demo1.h5, demo1.dat.
    2. Configure online plot to show counters and open the plot.
    3. Configure snapshot group: with a motor and the sys/tg_test/1/ampli attribute
    4. Add the sys/tg_test/1/double_scalar attribute to the measurement group.
    5. Open online plot
  4. Set JsonRecorder to true
  5. Run scan.
  6. Run showscan.
  7. Test edmac:
    1. Modify existing macro: ask_peak
    2. Create new macro in a new macro library: edmac my_macro <sardana>/macroserver/macros/examples/my_macros.py

Testing TaurusGUI with Sardana

  1. Create the GUI using this guide
  2. Test PMTV:
    1. Move motors from the slit panel in absolute and relative modes.
    2. Show expert view.
    3. Show compact mode.
  3. Test macroexecutor:
    1. Execute ascan macro
    2. Pause it in the middel and resume
    3. Abort it
    4. Add it to favorites
    5. Run lsm macro
    6. Execute ascan from favorites
    7. Run lsmac macro
    8. Execute ascan from history
    9. Edit dscan macro in spock yellow line and run it
    10. Restart macroexecutor application
    11. Run lsm from history
    12. Run ascan from favorites
  4. Test sequencer:
    1. Add ascan macro to the sequence
    2. Add lsct macro as a post-acq hook of ascan
    3. Add dscan macro to the sequence
    4. Run the sequence
    5. Save sequence to a file
    6. Start new sequence
    7. Load sequence from a files
    8. Run the loaded sequence
  5. Test sardanaeditor
    1. Open sardanaeditor with macroserver name as argument.
    2. Browse macro libraries and open an existing macro.
    3. Edit existing macro and save & apply chaneges.
    4. Execute macro to see if changes were aplied.
    5. Create a new macro using template.
    6. Execute the newly created macro.