CGI Testing: Difference between revisions
From genomewiki
Jump to navigationJump to search
Marygoldman (talk | contribs) m (→hgPcr: adding details) |
Marygoldman (talk | contribs) m (→hgBlat: adding point about testing the limits of blat) |
||
Line 54: | Line 54: | ||
# try different sorts and output types | # try different sorts and output types | ||
# make sure all the buttons work, including uploading a file | # make sure all the buttons work, including uploading a file | ||
# try uploading a file with too many bases or too many queries and verify error message | |||
==hgPcr== | ==hgPcr== |
Revision as of 18:00, 3 December 2010
Before testing your CGIs, check the version notes for recent changes particular to your CGIs. Pay extra attention to the changes when testing.
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 (not all panes will have an associated pane description)
- (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
- try uploading a file with too many bases or too many queries and verify error message
hgPcr
- test some perfectly matching primers, including a pair on the negative strand
- find a pair of primers that shouldn't match UCSC Genes and test that they don't
- vary settings and input primers for several assemblies and see if results make sense
- for human and mouse browsers, test the "UCSC Genes" target. Check that UI functions as expected
- check that the UI functions as expected for regular primers as well
hgLiftOver, hgConvert
- Choose an assembly and go to hgTracks
- Hit "Convert" in the blue bar at the top of the page
- Compare the output to the same conversion using liftOver:
- LiftOver is at Home -> Utilities -> Batch Coordinate Conversion (liftOver)
- Test both position and BED format
- Test a variety of settings
- Try converting multiple positions at once
- Try uploading a file
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
- find it by going Home -> Genome Graphs
- upload a dataset from a file
- upload a data set from a URL
- import data from a track
- change some configurations
- check that "browse regions" & "sort genes" work
- check the correlate button
Some good genome graph data for testing: http://hgwdev.cse.ucsc.edu/~rhead/genomeGraphsWithColumns
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.
hgEncodeVocab
- Go to an ENCODE track, most matrix headers should be links. Click on them, should take you to a page with a row of info about the term.
- Go to a couple of these pages and check that the sections are displaying (these pages use hgEncodeVocab to display the info on them):