CGI Testing
From genomewiki
Jump to navigationJump to search
hgTracks, hgTrackUi, hgc
- The TrackCheck robot checks this pretty thoroughly
- manually check anything that has been an issue during the past 2-week release cycle
- to check hgTrackUis, start from the "Track/Assebmly Overview" from the QA portal here (don't forget to click on the number of the machine that you are testing)
- click on random tracks to check them
hgGene
- Heather has a robot to check this CGI
- test one known gene - click off-site, check entire page
- test all possible paths among KG, PB, GS, VG (not that you wind up in mouse VG and need to use "Other Species" to get back to human.)
hgNear
- use the test protocol for Gene Sorter from the QA portal
hgCustom
- Test all three methods of entering a CT: typed in, uploaded by file, URL.
- Test editing, deleting, adding, updating, HTML docs, etc.
- Test adding mutiple tracks at once (multiple tracks in one file, multiple URLs, and pasting in mutiple tracks)
- Test CTs in relation to the Table Browser.
- See also examples page here: http://genomewiki.ucsc.edu/index.php/Custom_Track_Examples
hgVisiGene
- test the search box by entering a gene name
- check the zoom buttons
- check that the "Gene" link opens the correct gene details page, and that that "visiGene" link in that gene details page retrieves the correct images in visiGene
- pick an image and check all of the links for that page
- for images composed of several smaller images, check that the pane descriptions are displaying correctly
- (Note: the images from Mahoney are a subset of the MGI/Jax images. The Mahoney images should list two sources and should show two sets of acknowledgements.)
hgTables
- check all drop-downs
- press on summary/stats button
- do an intersection with a couple of different output formats
- make sure filtering is functioning
- create a custom track in the browser
- check all output formats
- try sending output to Galaxy and GREAT; make sure checkboxes stay checked when applying filters, etc.
- do a subtrack merge (select a table from a composite track to get the option)
- do a correlation
- try defining regions
hgPal
- check a "Protein FASTA" click-through from a UCSC Gene details page
- check a "CDS FASTA" click-through from a RefSeq Genes details page
- using the Table Browser, choose "CDS FASTA" as the output format (this should work for any genePred track)
- check that different settings give expected results
hgBlat
- perform both a nucleotide and a protein search with default settings
- make sure colors listed in description section are right
- zoom in on an alignment and test "View details of parts of alignment within browser window"
- try different sorts and output types
- make sure all the buttons work, including uploading a file
hgPcr
- test some perfectly matching primers
- vary settings and input primers and see if results make sense
- for human and mouse browsers, test the "UCSC Genes" target
hgLiftOver, hgConvert
- Test cases available in the database on hgwdev: qa.liftOverTestCases
pbGateway, pbGlobal, pbTracks
- general testing; click around
- enter a protein symbol
- review results page
- click into pbGlobal and check display
hgSession
- check that a new session can be saved
- check that old sessions are still there
- delete a session
- check browser & email button; click the title of session & make sure you can save changes to the description
- try loading a session via a file and via a URL
- logout and try to load a session that can be shared and one that can't be shared
hgGenome
Good genome graph data for testing: http://hgwdev.cse.ucsc.edu/~rhead/genomeGraphsWithColumns
- upload a dataset from a file
- upload a data set from a URL
- import data from a track
- check that you can change the configurations
- check that the "browser regions" & "sort genes" work
cartDump, cartReset
- check cart
- reset cart
- check cart again
See also: cart test protocol
hgApi
This CGI is responsible for the metadata "..." links on the hgTrackUi page and the "metadata" links on the hgc details pages of composite tracks with metadata.
- click on a "..." link and check that it opens up - no need to check the content. You only need to test one "..." link - if hgApi is broken, it will break all "..." links.
- This CGI can also be tested by clicking on a "meatadata" link in hgc details and check that it opens up - no need to check the content.
Probably doing 1 or 2 is sufficient, but it is a good habit to have the testers of hgTrackUi and hgc check 1 and 2 respectively, that way we are double covered in case one person forgets.