developer.tests
From autoplot.org
Contents |
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
- load vap+jyds:http://autoplot.org/data/events/filterEventsFile.jyds
- enter the editor. Change the resourceURI file to downloads.20110101.log
- plot this.
- aggregate this, so the URI is vap+jyds:http://autoplot.org/data/events/downloads.$Y$m$d.log?script=http://autoplot.org/data/events/filterEventsFile.jyds&timerange=2011-01-08
- enter the editor and change the range to "2011 Jan"
3.3. Extremes
Ben found in his testing a bug where resetting the zoom after zooming way in appeared to get in a deadlock.
- load vap+cdf:http://cdaweb.gsfc.nasa.gov/istp_public/data/polar/hyd_h0/2000/po_h0_hyd_20000109_v01.cdf?ELECTRON_DIFFERENTIAL_ENERGY_FLUX
- zoom out all the way with the mousewheel
- zoom in all the way with the mousewheel
- zoom out all the way
- reset zoom
- ctrl-Y and ctrl-Z to jump between zooms repeatedly.
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
- plot demo2 vap+cdf:http://cdaweb.gsfc.nasa.gov/istp_public/data/polar/hyd_h0/$Y/po_h0_hyd_$Y$m$d_v01.cdf?ELECTRON_DIFFERENTIAL_ENERGY_FLUX&timerange=20000109
- scan to next interval
- inspect, select ions, note time range for aggregation is 20000109. plot below.
- v2011_6 updates the time and makes the binding. v2011_7 leaves it alone and there is no binding made.
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.
