Subversion Repositories DevTools

Rev

Rev 7286 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
4
Response.Expires = 0   ' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'              Unit Test
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
17
<!--#include file="_tabs.asp"-->
18
<!--#include file="common/_popup_window_common.asp"-->
19
<%
20
' Set rfile parameter. This is a return page after Login
21
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
22
'------------ ACCESS CONTROL ------------------
23
%>
24
<!--#include file="_access_control_login.asp"-->
25
<!--#include file="_access_control_general.asp"-->
26
<!--#include file="_access_control_project.asp"-->
27
<%
28
'------------ Variable Definition -------------
29
Dim parPv_id
30
Dim parTest_Type_id
31
Dim rsQry
32
Dim sPkgName
33
Dim sPkgVersion
34
Dim isDLocked
35
Dim criticalSectionIsEditable
36
'------------ Constants Declaration -----------
37
'------------ Variable Init -------------------
38
parPv_id = Request("pv_id")
39
parTest_Type_id = Request("test_type_id")
6873 dpurdie 40
If parTest_Type_id = "" Then parTest_Type_id = enumTEST_TYPE_AUTOBUILD_UTF
5357 dpurdie 41
'----------------------------------------------
42
%>
43
<%
44
Function SQL_GetTestTypes ( )
45
   SQL_GetTestTypes = _
46
   "   SELECT tt.TEST_TYPE_ID, tt.TEST_TYPE_NAME"&_
47
   "    FROM TEST_TYPES tt"&_
48
   "   WHERE NOT tt.DISPLAY_ORDER IS NULL "&_
49
   "   ORDER BY tt.DISPLAY_ORDER"
50
End Function
51
%>
52
<%
53
'------------ Action Requirements -------------------
54
Call Get_Pkg_Short_Info(  Request("pv_id"), NULL, sPkgName, sPkgVersion, NULL, NULL, isDLocked )
55
criticalSectionIsEditable = Is_Critical_Section_Editable ( isDLocked )
56
 
57
%>
7286 dpurdie 58
<!DOCTYPE html>
5357 dpurdie 59
<html>
60
<head>
61
<title>Release Manager</title>
62
<link rel="shortcut icon" href="<%=FavIcon%>"/>
63
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
64
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 65
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
66
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
67
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 68
<!--#include file="_menu_def.asp"-->
69
<script language="JavaScript" type="text/javascript">
70
<!--
71
function ShowField()
72
{
7287 dpurdie 73
   var selVal = MM_findObj("test_type_id").value;
74
   if ( typeof selVal !== 'undefined' )
75
   {
76
       if ( selVal == 7 )
77
       {
78
          MM_findObj("DIV_REG_TEST").style.display = "none";
79
          MM_findObj("DIV_AUTOBUILD_TEST").style.display = "block";
5357 dpurdie 80
 
7287 dpurdie 81
       } else {
5357 dpurdie 82
 
7287 dpurdie 83
          MM_findObj("DIV_REG_TEST").style.display = "block";
84
          MM_findObj("DIV_AUTOBUILD_TEST").style.display = "none";
5357 dpurdie 85
 
7287 dpurdie 86
          if ( selVal == 5 ) {
87
             // Switch on URL attachment
88
             MM_findObj("spanResultsAttachment").style.display = "none";
89
             MM_findObj("spanResultsUrl").style.display = "block";
90
          } else {
91
             // Switch on File attachment
92
             MM_findObj("spanResultsAttachment").style.display = "block";
93
             MM_findObj("spanResultsUrl").style.display = "none";
5357 dpurdie 94
 
7287 dpurdie 95
          }
96
       }
5357 dpurdie 97
   }
5590 dpurdie 98
   // Update iframe size
7287 dpurdie 99
   // document.getElementById('pageContainer').offsetWidth, document.getElementById('pageContainer').offsetHeight
100
   parent.resizeIframe();
5357 dpurdie 101
}
102
//-->
103
</script>
104
<!-- TIPS -->
6579 dpurdie 105
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
106
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
7287 dpurdie 107
<!--#include file="_jquery_includes.asp"-->
5357 dpurdie 108
</head>
109
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();ShowField();">
7287 dpurdie 110
<div id=pageContainer style='display:inline-block'>
111
<div id='ProgressBar' class='vixSpinner' style='visibility:hidden;'></div>
5590 dpurdie 112
<form class="form_tight" action="_new_unit_test.asp" method="post" enctype="multipart/form-data" name="unittest" onSubmit="MM_validateForm('completion_date','Completion Date','RisDate','test_summary','Test Summary','maxLength:4000');return document.MM_returnValue;">
113
   <table border="0" cellspacing="0" cellpadding="2">
5357 dpurdie 114
      <tr>
115
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
116
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
117
               <tr>
118
                  <td width="1%" nowrap class="sublbox_hitem"><img src="images/h_trsp_dot.gif" width="10" height="30">
119
                     <%If Request("save_stat") <> "" Then%>
120
                        Saving complete.
121
                     <%End If%>
122
                  </td>
6790 dpurdie 123
                  <td width="100%" align="left" valign="bottom">
5357 dpurdie 124
                     <!-- TABS ------------------------------------->
125
                     <%Call Generate_Tab_Menu ( TABarray6D, "Unit Test Details", "blue" )%>
126
                  </td>
127
               </tr>
128
               <tr>
129
                  <td background="images/lbox_bg_blue.gif"></td>
130
                  <td background="images/lbox_bg_blue.gif">&nbsp;</td>
131
               </tr>
132
            </table>
133
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
134
               <tr>
135
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Test Type <%=Quick_Help ( "ut_test_type" )%></td>
136
               </tr>
137
               <tr>
138
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
139
                     <select name="test_type_id" class="form_item" onchange="ShowField();">
140
                        <%
141
                        Set rsQry = OraDatabase.CreateDynaset( SQL_GetTestTypes(), cint(0))
142
 
143
                        While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
144
                           If (isDLocked <> "Y") OR _
145
                              (rsQry("test_type_id") <> CStr(enumTEST_TYPE_AUTOBUILD_UTF)) OR _
146
                              ((rsQry("test_type_id") = CStr(enumTEST_TYPE_AUTOBUILD_UTF)) AND (isDLocked = "Y" AND criticalSectionIsEditable)) Then
147
                              %>
148
                              <option value="<%=rsQry("test_type_id")%>" <%If CInt(parTest_Type_id) = CInt(rsQry("test_type_id")) Then%>SELECTED<%End If%>><%=rsQry("test_type_name")%></option>
149
                              <%
150
                           End If
151
                           rsQry.MoveNext
152
                        WEnd
153
 
154
                        rsQry.Close
155
                        Set rsQry = Nothing
156
                        %>
157
                     </select>
158
                  </td>
159
               </tr>
160
            </table>
161
            <br>
162
 
163
            <DIV id="DIV_REG_TEST" style="display:block;">
164
               <table width="100%" border="0" cellspacing="1" cellpadding="2">
165
                  <tr>
166
                     <td width="1%">&nbsp;</td>
167
                     <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field"></td>
168
                     <td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">
169
                        <SPAN name="spanResultsAttachment" id="spanResultsAttachment">
170
                           Results File Attachment <br><input name="results_file" type="file" class="form_item" size="65" class="form_txt">
171
                        </SPAN>
172
                        <SPAN name="spanResultsUrl" id="spanResultsUrl" style="display:none;">
173
                           Results URL <br><input name="results_url" type="text" class="form_item" id="results_url" size="80" maxlength="2000" class="form_txt" value="<%=dpkg_archiveURL & sPkgName &"/"& sPkgVersion &"/doc/"%>"><br>
174
                           <span class="rep_small">NOTE: Root dpkg_archive URL is <%=dpkg_archiveURL%></span>
175
                        </SPAN>
176
                     </td>
177
                  </tr>
178
                  <tr>
179
                     <td>&nbsp;</td>
180
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">
181
                        Passed
182
                        <br>
183
                        # / Total <%=Quick_Help ( "ut_passed" )%>
184
                     </td>
185
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
186
                        <input name="numof_test" type="text" class="form_item" id="numof_test" size="20">
187
                     </td>
188
                  </tr>
189
                  <tr>
190
                     <td>&nbsp;</td>
191
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Completion Date </td>
192
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
193
                        <input name="completion_date" type="text" class="form_item" id="completion_date" value="<%=EuroDate (Date) %>" size="20" maxlength="10">
194
                     </td>
195
                  </tr>
196
                  <tr>
197
                     <td width="1%">&nbsp;</td>
198
                     <td nowrap width="1%" valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Test Summary <%=Quick_Help ( "ut_summary" )%></td>
199
                     <td width="100%" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
200
                        <textarea cols="80" rows="20" name="test_summary" class="form_item" id="test_summary"></textarea>
201
                     </td>
202
                  </tr>
203
               </table>
204
            </DIV>
205
 
206
            <DIV id="DIV_AUTOBUILD_TEST" style="display:none;">
207
               <table width="100%" border="0" cellspacing="1" cellpadding="2">
208
                  <tr>
209
                     <td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
210
                        Refer to <a href="<%=BMS_QUALITY_URL%>" class="txt_linked" target="_blank">VIX Quality Management System</a>
211
                        <p>Navigate to <a href="<%=DocBrowseLink%>?pgid=2&pid=51&cid=1426" class="txt_linked" target="_blank">Technical Solution Process Area</a> and read documents related to Unit Testing. ie:<ul>
212
                        <li><a href="<%=DocRepositiryLink%>bms-00369" class="txt_linked" target="_blank">Unit Test Guidelines</a> [BMS-00369]
213
                        <li><a href="<%=DocRepositiryLink%>techgp-00054" class="txt_linked" target="_blank">Unit Testing at ERG</a>  [TECHGP-00054]
214
                        </ul>
215
                     </td>
216
                  </tr>
217
               </table>
218
            </DIV>
219
         </td>
220
      </tr>
221
      <tr>
7287 dpurdie 222
         <td align="right" nowrap class="wform_ttl">
5590 dpurdie 223
            <input type="submit" name="btn" value="Submit" class="form_btn_comp">
224
            <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
7287 dpurdie 225
			<input type="hidden" name="pv_id" value="<%=parPv_id%>">
226
			<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
5590 dpurdie 227
         </td>
5357 dpurdie 228
      </tr>
229
   </table>
230
</form>
7287 dpurdie 231
</div>
5357 dpurdie 232
</body>
233
</html>
234
<!-- DESTRUCTOR ------->
235
<!--#include file="common/destructor.asp"-->