Skip to content

developer.writingTests

Jeremy Faden edited this page Jun 14, 2024 · 3 revisions

Purpose: Outline procedure for adding tests

Audience: Developers of Autoplot

Introduction

Autoplot's nightly testing has been essential to its development and acceptable stability. This document covers how tests are created and added to the nightly tests.

Jemmy GUI Testing

Jemmy is a Java system that tests GUIs by synthesizing GUI event objects so that the GUI thinks it is interacting with a human, and the lines of code between the button clicks and methods callable from scripts are tested.

Jemmy tests require the Jemmy library be on the Java path, and a special Jemmy test class is created that will run the test.

Adding a test

The Jemmy tests are in the SVN repository at .../autoplot/VATesting/src/org/autoplot/test/. A Jemmy test implements the org.netbeans.jemmy.Scenario interface, which has a "runIt(Object)" implementation and a main method that invokes the test with introspection via org.netbeans.jemmy.Test.main(params) where params is a String array and params[0] is the test name. When copying an existing test to make a new test, be sure to update the main method.

Best practices

Now that the benefits of Jemmy are known, there are logical conventions new GUIs should be created. For example, every component really should have an internal name, so that the Jemmy tests can get a reference to them. It's common that old GUIs will need to be modified to support Jemmy testing, and the name of the GUI should match the name typically used in the Java source code.

Table Of Contents

URIs that Point to Data Files

Download a CDF and Plot it with Autoplot

Load a CDF directly from a website

URIs that Point to Data Servers

Saving to vap files

Loading vap files

Data Sources

CDF Files

HDF/NetCDF Files

Aggregation

CDAWeb

HAPI Servers

Exporting Data

Export Types

Additional controls

Aggregation

Tools

PNGWalk Tool

Data Mash Up

Events List

Run Batch

Advanced Topics

TimeSeriesBrowse and other Capabilities

Events Lists

Caching

Autoranging

Managing Autoplot's Data Cache

Using Autoplot with Python, IDL, and Matlab

Reading data into Python

Reading data into IDL

Reading data into Matlab

QDataSet Data Model

Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy