developer.tests

From autoplot.org

Jump to: navigation, search

Contents

  1. Introduction / Purpose
  2. Tests
    1. run through bookmarks
    2. context overview
  3. Proposed New Tests
    1. Multi-panel plot
    2. Jython Data Source Filter
    3. Extremes
    4. TimeSeriesBrowse
    5. Undo/Redo between timeseries and non-timeseries, components and no components

1. Introduction / Purpose

This is a series of human driven tests that test things that are not easy to test in automatic testing. The order should be preserved in case numbers are used to identify tests in bug reports. Also in bug reports, the names of the tests, e.g. "run through bookmarks", should be used in case order is changed.

2. Tests

2.1. run through bookmarks

  • start autoplot with fresh session
  • select the first bookmark, Demos->Demo 1
  • select each bookmark after it, up to "browse a directory tree"
  • for "browse a directory tree," navigate through the tree to a dataset
  • for demo 12, fits file, verify that the data tab starts up and the slice index is adjustable.

2.2. context overview

  • reset and plot bookmarks->demos->demo 5
  • zoom in on x and y with box zoom.
  • right-click on plot, "add plot"-> "context overview"
  • a plot with its original ranges should be displayed below

3. Proposed New Tests

New tests should be submitted here for review.

3.1. Multi-panel plot

This more advanced example shows how to create a 2x3 stack of 6 plots to look at the components of a fits file.

  • add 2x3 empty plots using layout tab, plots context menu, Canvas->AddPlots
  • Edit DOM, plotElements[*].dataSourceFilterId='data_1' so they all plot the same data
  • Edit DOM, plotElements[*].component slice0(i) to plot each element
  • layout tab, plots context menu, Canvas->Add Hidden Plot to bind all the plot X and Y axes together
  • demo XY binding, all Z axes should be automatically zoomed to just their slice.

3.2. Jython Data Source Filter

3.3. Extremes

Ben found in his testing a bug where resetting the zoom after zooming way in appeared to get in a deadlock.

I was not able to get it to hang on Linux.

3.4. TimeSeriesBrowse

https://sourceforge.net/tracker/?func=detail&aid=3484946&group_id=199733&atid=970682

3.5. Undo/Redo between timeseries and non-timeseries, components and no components

  • repeat 5 times:
    • demo 4
    • demo 5
  • I was getting a case where it wouldn't flip, as if some event is getting lost.
  • File->Edit->Undo... to go back 6 states.
  • Redo is insensitive (which it shouldn't be), and I get inconvertable xaxis units.