<%@ Page Language="c#" ValidateRequest="false" AutoEventWireup="false" Debug="true"
    Inherits="edu.jhu.Cas.WebTest.CJobsTestLoader" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="nt.css" rel="stylesheet" />

    <script type="text/javascript" src="../scripts/qspop.js"></script>
    <script type="text/javascript">
    function iinit(){
        if(document.getElementById('wsidR').value != -1){
	        document.getElementById('initPane').style.display = "none";	
	        document.getElementById('testHelpPane').style.display = "block";	
	        document.getElementById('runAllPane').style.display = "block";	
        }
    }
    </script>
    <title>CasJobs Test</title>
</head>
<body onclick="hideqsnode();" onload="iinit();">
    <h1>
        CasJobs Test</h1>
    <div id="initPane" style="display: block">
        <form>
            <p>
                <table>
                    <tr>
                        <th>
                            Test Account WSID:</th>
                        <td>
                            <input type="text" name="WSID" value="<%=def_testid %>" /></td>
                    </tr>
                </table>
                <p>
                    <input type="submit" value="Set" /></p>
            </p>
        </form>
    </div>
    <div id="testHelpPane" style="display: none; font-size: 10">
        <p>
            This page is designed to test various back-end functionality of CasJobs. Tests may
            be run while the main site is online without adversly affecting performance.
        </p>
        <p>
            Run a test by clicking on its title. You can run more than one test at a time. You
            can run all tests within a group by clicking on the group's title. Any element on
            this page which changes color on mouseover generally has a detailed popup expanding
            on that element.
        </p>
    </div>
    <div id="zmessage" style="color: red">
    </div>
    <div id="runAllPane" style="display: none;">
        <h3>
            <input id="zrunall" class="ztestButtonH" type="button" onmouseover="showZNode('zrunall','zrat');"
                onmouseout="hideZNode();" onclick="zRunAll();" value="Run All Tests" /></h3>
        <div style="display: none" id="zrat">
            Runs all tests.</div>
    </div>
    <input id="allTIDs" type="hidden" value="<%=GetAllTIDs(groups)%>" />
    <%=GetGroups(groups)%>
    <input type="hidden" id="wsidR" value="<%=wsid%>" />
    <div id="groups">
    </div>
    <div id="tonsoftext">
    </div>
    <br />

    <script type="text/javascript" src="ZTest.js"></script>

</body>
</html>
