Regression Test for WIRR
This document aims at testing the functionality of GAVO's
Web Interface to the
Relational Registry
(WIRR).
(1) WIRR Access and Sidebar Test:
	
		- 
			Direct your browser to 
			WIRR.
		
 
		- 
			Click on the Quick Start button on top of the sidebar. A
			page should be opened in a new window providing two examples for
			database queries with WIRR.
		
 
		- 
			Close the Quick Start page.
		
 
		- 
			Click on the Help button below. Again a page is expected to
			be opened in a separate window. This page provides a description of
			the most prominent features of WIRR.
		
 
		- 
			Close the Help page.
		
 
		- 
			Test the seven click buttons below “Fill form for...”. A
			click on any of them will update the search form according to the
			type of service or waveband region and will send the query to the
			database:
			
				- 
					Image Services: Service Capability is
					Image Access
				
 
				- 
					Spectral Services: Service Capability
					is Spectral Access
				
 
				- 
					TAP Services: Service Capability is TAP
					(SQL)
				
 
				- 
					ObsTAP Services: Detail Value
					/capability/dataModel/@ivo-id
					= ivo://ivoa.net/std/obscore-1.0
				
 
				- 
					Radio Resources: Waveband is Radio
				
 
				- 
					IR Resources: Waveband is Infrared
				
 
				- 
					UV Resources: Waveband is UV
				
 
			
		 
	
(2) Search Form Test:
	
		- 
			Click on the search criteria field  this should be
			Waveband right now  and change the field to
			Column UCD. The constraint line should change from
			Waveband is UV to Column UCD like
			<emptyTextField>.
		
 
		- 
			Click on the + button to add a constraint
			line. Change the search criterion from Text Fields to
			Resource and check whether the line changes to
			Resource related to <emptyTextField>.
		
 
		- 
			Likewise add another constraint line and change the search criterion
			from Text Fields to IVOID. The
			constraint line should change to IVOID is similar to
			<emptyTextField>.
		
 
		- 
			Remove the second constraint line by clicking on the
			- button.
		
 
		- 
			From the two remaining constraint lines remove the upper one. The
			- button behind the last constraint line
			should disappear at the same time.
		
 
		- 
			Reload the page.
		
 
	
(3) Database and Result Box Test:
Building a Query and Checking the Information on the Results
	
		- 
			Build the following search form:
		
 
	
	
	
		- 
			Send the query to the database by clicking the
			Run Query button. About 40 resources match your
			search criteria but only 20 of them are displayed in the result box.
		
 
		- 
			For let's say two or three resources click on the arrow to the left
			of the resource title to get access to more detailed information.
			Close the detail sub-menus in a different order to which you opened
			them.
		
 
		- 
			Click on the “Contact Icon” 
			
			 of one or two resources to check whether the contact
			information is correctly displayed. Use the left mouse button to
			drag the popup window around the screen. Finally, close the window
			by clicking on the cross in its top right corner.
		 
	
Page Navigation
	
		- 
			On top of the result box, you'll find the navigation buttons for the
			result pages. Click on the button that says 21-40.
			You should obtain the next 20 resources in alphabetical order. In the
			search form the value in the “Offset” text field should
			have changed from 0 to 20.
		
 
		- 
			Obtain the last result(s) from the list by clicking on the right
			page navigation button. Then use the left navigation button twice to
			go back to the first 20 results.
		
 
		- 
			Change the pre-selected value of 20 results per page to
			50. This is the search form element behind the text
			“Items displayed per page”. Run the query. All resources
			matching the query should become visible on a single page.
		
 
		- 
			Now choose a combination like Items displayed per page: 5
			 Offset: 7 items. Launch your query.
		
 
		- 
			The left navigation button is supposed to say 3-7.
			Click on it. The text label of this button should change to
			1-2. In the search form you are supposed to
			see Offset: 2 items. If you click on the left navigation
			button again, it should disappear whereas the offset text field is
			expected to contain a 0.
		
 
		- 
			Reload the page.
		
 
	
Query History
	
		- 
			Run the following query: Text Fields match neutrino 
			Items displayed: 10  Offset: 0
		
 
		- 
			Enter and launch the query: Waveband is not Optical 
			Items displayed: 200  Offset: 16. Then modify
			the query by changing the Items displayed; to 5
			and the offset to 97. Run the modified query too.
		
 
		- 
			On the bottom of the search form box (it's actually below the HTML
			<form> element), you'll find the
			Query History arrows. Click on the left arrow to
			get back the result list for the Waveband is not Optical 
			Items displayed: 200  Offset: 16 query.
		
 
		- 
			Click on the left arrow again. You should end up at the result list
			for the Text Fields match neutrino  Items
			displayed: 10  Offset: 0 query. Press the right
			arrow button to check whether you can also move forward in history.
			If everything works fine, you see again Waveband is not Optical
			 Items displayed: 200  Offset: 16 in your
			search form and the resources matching this query in the result box.
		
 
		- 
			Run the query: Service Capability is Spectral Access 
			Items displayed: 20  Offset: 0. When you browse
			back and forth in history, you'll see that the Text Fields
			and the first Waveband query are still there whereas
			the second Waveband query (with different item limit
			and offset values) got lost.
		
 
	
Detail Value Queries
	
		- 
			Again click on the ObsTAP Services button in the
			sidebar. You should get several results back from the database.
		
 
		- 
			Change the ivo://ivoa.net/std/obscore-1.0 in the text field
			into a score-1.0. The database is supposed to return a list
			identical to the one you obtained in the previous step.
		
 
		- 
			Run the query Detail Value /capability/imageServiceType
			= Pointed. The number of results returned by the database is
			expected to be greater than 100.
		
 
	
(4) SAMP Connection and Transfer Test:
Connectivity to the SAMP Hub
	
		- 
			Enter and launch the query: Text Fields match galaxies 
			Items displayed: 100  Offset: 0.
		
 
		- 
			Click on the Connect to SAMP Hub button. If TOPCAT
			or another hub is not already running on your desktop machine,
			you'll get the following warning: “Could not connect to SAMP
			hub: please check if a Web SAMP Hub, e.g. TOPCAT, has been
			launched”.
		
 
		- 
			Launch TOPCAT and click the SAMP Hub button again.
		
 
		- 
			Allow connecting to the hub by saying Ja (or
			Yes depending on your locale). The GAVO icon should
			show up in TOPCAT's client list, and at the same instant, the
			Connect to SAMP Hub button should have been
			replaced by a set of capability buttons, one for each capability
			type found in the resource list. In our case, four buttons should be
			present: Tabular services, Image
			services, Spectral services, and
			TAP (SQL) services.
		
 
	
Resource Transfer Using SAMP
	
		- 
			Click on the Tabular services button. You are
			expected to see a box that says “WARNING: The resource list
			was received successfully, but TOPCAT was not in a suitable state to
			make use of it (perhaps suitable windows were not open)”.
		
 
		- 
			In TOPCAT's menu choose VO → Cone
			Search to open the built-in Cone Search client. Then it's
			highly recommended to direct the client to the registry at
			http://registry.euro-vo.org/services/RegistrySearch. If you
			are here, click WIRR's Tabular services button
			again.
		
 
		- 
			If everything works as desired, the resources having a Cone Search
			capability are transferred to TOPCAT and can be used for further
			investigations. You may repeat the last step for TOPCAT's built-in
			Image Access, Spectral Access and TAP clients.