| Line 1... |
Line 1... |
| 1 |
<%@LANGUAGE="VBSCRIPT"%>
|
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
| 2 |
<%
|
2 |
<%
|
| 3 |
Option explicit
|
3 |
Option explicit
|
| 4 |
Response.Expires = 0 ' always load the page, dont store
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
| 5 |
%>
|
5 |
%>
|
| 6 |
<%
|
6 |
<%
|
| 7 |
'=====================================================
|
7 |
'=====================================================
|
| 8 |
' Unit Test
|
8 |
' Unit Test
|
| 9 |
'=====================================================
|
9 |
'=====================================================
|
| 10 |
%>
|
10 |
%>
|
| 11 |
<!--#include file="common/conf.asp"-->
|
11 |
<!--#include file="common/conf.asp"-->
|
| 12 |
<!--#include file="common/globals.asp"-->
|
12 |
<!--#include file="common/globals.asp"-->
|
| 13 |
<!--#include file="common/formating.asp"-->
|
13 |
<!--#include file="common/formating.asp"-->
|
| Line 40... |
Line 40... |
| 40 |
If parTest_Type_id = "" Then parTest_Type_id = enumTEST_TYPE_INTERACTIVE
|
40 |
If parTest_Type_id = "" Then parTest_Type_id = enumTEST_TYPE_INTERACTIVE
|
| 41 |
'----------------------------------------------
|
41 |
'----------------------------------------------
|
| 42 |
%>
|
42 |
%>
|
| 43 |
<%
|
43 |
<%
|
| 44 |
Function SQL_GetTestTypes ( )
|
44 |
Function SQL_GetTestTypes ( )
|
| 45 |
SQL_GetTestTypes = _
|
45 |
SQL_GetTestTypes = _
|
| 46 |
" SELECT tt.TEST_TYPE_ID, tt.TEST_TYPE_NAME"&_
|
46 |
" SELECT tt.TEST_TYPE_ID, tt.TEST_TYPE_NAME"&_
|
| 47 |
" FROM TEST_TYPES tt"&_
|
47 |
" FROM TEST_TYPES tt"&_
|
| 48 |
" WHERE NOT tt.DISPLAY_ORDER IS NULL "&_
|
48 |
" WHERE NOT tt.DISPLAY_ORDER IS NULL "&_
|
| 49 |
" ORDER BY tt.DISPLAY_ORDER"
|
49 |
" ORDER BY tt.DISPLAY_ORDER"
|
| 50 |
End Function
|
50 |
End Function
|
| 51 |
%>
|
51 |
%>
|
| 52 |
<%
|
52 |
<%
|
| 53 |
'------------ Action Requirements -------------------
|
53 |
'------------ Action Requirements -------------------
|
| 54 |
Call Get_Pkg_Short_Info( Request("pv_id"), NULL, sPkgName, sPkgVersion, NULL, NULL, isDLocked )
|
54 |
Call Get_Pkg_Short_Info( Request("pv_id"), NULL, sPkgName, sPkgVersion, NULL, NULL, isDLocked )
|
| Line 66... |
Line 66... |
| 66 |
<!--#include file="_menu_def.asp"-->
|
66 |
<!--#include file="_menu_def.asp"-->
|
| 67 |
<script language="JavaScript" type="text/javascript">
|
67 |
<script language="JavaScript" type="text/javascript">
|
| 68 |
<!--
|
68 |
<!--
|
| 69 |
function ShowField()
|
69 |
function ShowField()
|
| 70 |
{
|
70 |
{
|
| 71 |
if ( MM_findObj("test_type_id").value == 7 ) {
|
71 |
if ( MM_findObj("test_type_id").value == 7 ) {
|
| 72 |
MM_findObj("DIV_REG_TEST").style.display = "none";
|
72 |
MM_findObj("DIV_REG_TEST").style.display = "none";
|
| 73 |
MM_findObj("DIV_AUTOBUILD_TEST").style.display = "block";
|
73 |
MM_findObj("DIV_AUTOBUILD_TEST").style.display = "block";
|
| 74 |
|
74 |
|
| 75 |
} else {
|
75 |
} else {
|
| 76 |
|
76 |
|
| 77 |
MM_findObj("DIV_REG_TEST").style.display = "block";
|
77 |
MM_findObj("DIV_REG_TEST").style.display = "block";
|
| 78 |
MM_findObj("DIV_AUTOBUILD_TEST").style.display = "none";
|
78 |
MM_findObj("DIV_AUTOBUILD_TEST").style.display = "none";
|
| 79 |
|
79 |
|
| 80 |
if ( MM_findObj("test_type_id").value == 5 ) {
|
80 |
if ( MM_findObj("test_type_id").value == 5 ) {
|
| 81 |
// Switch on URL attachment
|
81 |
// Switch on URL attachment
|
| 82 |
MM_findObj("spanResultsAttachment").style.display = "none";
|
82 |
MM_findObj("spanResultsAttachment").style.display = "none";
|
| 83 |
MM_findObj("spanResultsUrl").style.display = "block";
|
83 |
MM_findObj("spanResultsUrl").style.display = "block";
|
| 84 |
} else {
|
84 |
} else {
|
| 85 |
// Switch on File attachment
|
85 |
// Switch on File attachment
|
| 86 |
MM_findObj("spanResultsAttachment").style.display = "block";
|
86 |
MM_findObj("spanResultsAttachment").style.display = "block";
|
| 87 |
MM_findObj("spanResultsUrl").style.display = "none";
|
87 |
MM_findObj("spanResultsUrl").style.display = "none";
|
| 88 |
|
88 |
|
| 89 |
}
|
89 |
}
|
| 90 |
}
|
90 |
}
|
| 91 |
}
|
91 |
}
|
| 92 |
|
92 |
|
| 93 |
//-->
|
93 |
//-->
|
| 94 |
</script>
|
94 |
</script>
|
| 95 |
<!-- TIPS -->
|
95 |
<!-- TIPS -->
|
| Line 99... |
Line 99... |
| 99 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();ShowField();">
|
99 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();ShowField();">
|
| 100 |
<!-- TIPS LAYERS -------------------------------------->
|
100 |
<!-- TIPS LAYERS -------------------------------------->
|
| 101 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
101 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
| 102 |
<!----------------------------------------------------->
|
102 |
<!----------------------------------------------------->
|
| 103 |
<form 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;">
|
103 |
<form 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;">
|
| 104 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
104 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
| 105 |
<tr>
|
105 |
<tr>
|
| 106 |
<td width="1%" background="images/lbox_bg_orange.gif"><img src="images/i_unit_test_off.gif" width="18" height="25" hspace="5" border="0"></td>
|
106 |
<td width="1%" background="images/lbox_bg_orange.gif"><img src="images/i_unit_test_off.gif" width="18" height="25" hspace="5" border="0"></td>
|
| 107 |
<td width="1%" background="images/lbox_bg_blue.gif" nowrap class="wform_ttl"> Unit Test</td>
|
107 |
<td width="1%" background="images/lbox_bg_blue.gif" nowrap class="wform_ttl"> Unit Test</td>
|
| 108 |
<td width="100%" background="images/lbox_bg_blue.gif" align="right" nowrap class="wform_ttl"><SPAN id="ProgressBar" name="ProgressBar" style="visibility:hidden;"><img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Uploading... Please Wait!</SPAN>
|
108 |
<td width="100%" background="images/lbox_bg_blue.gif" align="right" nowrap class="wform_ttl"><SPAN id="ProgressBar" name="ProgressBar" style="visibility:hidden;"><img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Uploading... Please Wait!</SPAN>
|
| 109 |
<input type="submit" name="btn" value="Submit" class="form_btn_comp">
|
109 |
<input type="submit" name="btn" value="Submit" class="form_btn_comp">
|
| 110 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
|
110 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
|
| 111 |
</td>
|
111 |
</td>
|
| 112 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%" nowrap><img src="images/h_trsp_dot.gif" width="5" height="22"></td>
|
112 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%" nowrap><img src="images/h_trsp_dot.gif" width="5" height="22"></td>
|
| 113 |
</tr>
|
113 |
</tr>
|
| 114 |
<tr>
|
114 |
<tr>
|
| 115 |
<td height="100%" width="1%"> </td>
|
115 |
<td height="100%" width="1%"> </td>
|
| 116 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
116 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
| 117 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
117 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 118 |
<tr>
|
118 |
<tr>
|
| 119 |
<td width="1%" nowrap class="sublbox_hitem"><img src="images/h_trsp_dot.gif" width="10" height="30">
|
119 |
<td width="1%" nowrap class="sublbox_hitem"><img src="images/h_trsp_dot.gif" width="10" height="30">
|
| 120 |
<%If Request("save_stat") <> "" Then%>
|
120 |
<%If Request("save_stat") <> "" Then%>
|
| 121 |
Saving complete.
|
121 |
Saving complete.
|
| 122 |
<%End If%></td>
|
122 |
<%End If%>
|
| 123 |
<td width="100%" align="right" valign="bottom">
|
123 |
</td>
|
| 124 |
<!-- TABS ------------------------------------->
|
124 |
<td width="100%" align="right" valign="bottom">
|
| 125 |
<%Call Generate_Tab_Menu ( TABarray6D, "Unit Test Details", "blue" )%>
|
125 |
<!-- TABS ------------------------------------->
|
| 126 |
</td>
|
126 |
<%Call Generate_Tab_Menu ( TABarray6D, "Unit Test Details", "blue" )%>
|
| 127 |
</tr>
|
127 |
</td>
|
| 128 |
<tr>
|
128 |
</tr>
|
| 129 |
<td background="images/lbox_bg_blue.gif"></td>
|
129 |
<tr>
|
| 130 |
<td background="images/lbox_bg_blue.gif"> </td>
|
130 |
<td background="images/lbox_bg_blue.gif"></td>
|
| 131 |
</tr>
|
131 |
<td background="images/lbox_bg_blue.gif"> </td>
|
| 132 |
</table>
|
132 |
</tr>
|
| 133 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
133 |
</table>
|
| 134 |
<tr>
|
134 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| 135 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Test Type <%=Quick_Help ( "ut_test_type" )%></td>
|
135 |
<tr>
|
| 136 |
</tr>
|
136 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Test Type <%=Quick_Help ( "ut_test_type" )%></td>
|
| 137 |
<tr>
|
137 |
</tr>
|
| 138 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
138 |
<tr>
|
| 139 |
<select name="test_type_id" class="form_item" onchange="ShowField();">
|
139 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
| 140 |
<%
|
140 |
<select name="test_type_id" class="form_item" onchange="ShowField();">
|
| 141 |
Set rsQry = OraDatabase.CreateDynaset( SQL_GetTestTypes(), cint(0))
|
141 |
<%
|
| 142 |
%>
|
142 |
Set rsQry = OraDatabase.CreateDynaset( SQL_GetTestTypes(), cint(0))
|
| 143 |
<%
|
143 |
|
| 144 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
144 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
| 145 |
If isDLocked <> "Y" OR rsQry("test_type_id") <> enumTEST_TYPE_AUTOBUILD_UTF OR (rsQry("test_type_id") = enumTEST_TYPE_AUTOBUILD_UTF AND isDLocked = "Y" AND criticalSectionIsEditable) Then
|
145 |
If (isDLocked <> "Y") OR _
|
| 146 |
%>
|
146 |
(rsQry("test_type_id") <> CStr(enumTEST_TYPE_AUTOBUILD_UTF)) OR _
|
| 147 |
<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>
|
147 |
((rsQry("test_type_id") = CStr(enumTEST_TYPE_AUTOBUILD_UTF)) AND (isDLocked = "Y" AND criticalSectionIsEditable)) Then
|
| 148 |
<%
|
148 |
%>
|
| 149 |
End If
|
149 |
<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>
|
| 150 |
rsQry.MoveNext
|
150 |
<%
|
| 151 |
WEnd
|
151 |
End If
|
| 152 |
|
152 |
rsQry.MoveNext
|
| 153 |
rsQry.Close
|
153 |
WEnd
|
| 154 |
Set rsQry = Nothing
|
154 |
|
| 155 |
%>
|
155 |
rsQry.Close
|
| 156 |
</select></td>
|
156 |
Set rsQry = Nothing
|
| 157 |
</tr>
|
157 |
%>
|
| 158 |
</table>
|
158 |
</select>
|
| 159 |
|
159 |
</td>
|
| 160 |
<br>
|
160 |
</tr>
|
| 161 |
|
161 |
</table>
|
| 162 |
<DIV id="DIV_REG_TEST" style="display:block;">
|
162 |
<br>
|
| 163 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
163 |
|
| 164 |
<tr>
|
164 |
<DIV id="DIV_REG_TEST" style="display:block;">
|
| 165 |
<td width="1%"> </td>
|
165 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| 166 |
<td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field"></td>
|
166 |
<tr>
|
| 167 |
<td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">
|
167 |
<td width="1%"> </td>
|
| 168 |
<SPAN name="spanResultsAttachment" id="spanResultsAttachment">
|
168 |
<td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field"></td>
|
| 169 |
Results File Attachment <br><input name="results_file" type="file" class="form_item" size="65" class="form_txt">
|
169 |
<td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">
|
| 170 |
</SPAN>
|
170 |
<SPAN name="spanResultsAttachment" id="spanResultsAttachment">
|
| 171 |
<SPAN name="spanResultsUrl" id="spanResultsUrl" style="display:none;">
|
171 |
Results File Attachment <br><input name="results_file" type="file" class="form_item" size="65" class="form_txt">
|
| 172 |
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>
|
172 |
</SPAN>
|
| 173 |
<span class="rep_small">NOTE: Root dpkg_archive URL is <%=dpkg_archiveURL%></span>
|
173 |
<SPAN name="spanResultsUrl" id="spanResultsUrl" style="display:none;">
|
| 174 |
</SPAN>
|
174 |
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>
|
| 175 |
</td>
|
175 |
<span class="rep_small">NOTE: Root dpkg_archive URL is <%=dpkg_archiveURL%></span>
|
| 176 |
</tr>
|
176 |
</SPAN>
|
| 177 |
<tr>
|
177 |
</td>
|
| 178 |
<td> </td>
|
178 |
</tr>
|
| 179 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Passed<br>
|
179 |
<tr>
|
| 180 |
# / Total <%=Quick_Help ( "ut_passed" )%></td>
|
180 |
<td> </td>
|
| 181 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><input name="numof_test" type="text" class="form_item" id="numof_test" size="20">
|
181 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">
|
| 182 |
</td>
|
182 |
Passed
|
| 183 |
</tr>
|
183 |
<br>
|
| 184 |
<tr>
|
184 |
# / Total <%=Quick_Help ( "ut_passed" )%>
|
| 185 |
<td> </td>
|
185 |
</td>
|
| 186 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Completion
|
186 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
| 187 |
Date </td>
|
187 |
<input name="numof_test" type="text" class="form_item" id="numof_test" size="20">
|
| 188 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><input name="completion_date" type="text" class="form_item" id="completion_date" value="<%=EuroDate (Date) %>" size="20" maxlength="10">
|
188 |
</td>
|
| 189 |
</td>
|
189 |
</tr>
|
| 190 |
</tr>
|
190 |
<tr>
|
| 191 |
<tr>
|
191 |
<td> </td>
|
| 192 |
<td width="1%"> </td>
|
192 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Completion Date </td>
|
| 193 |
<td nowrap width="1%" valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Test
|
193 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
| 194 |
Summary <%=Quick_Help ( "ut_summary" )%></td>
|
194 |
<input name="completion_date" type="text" class="form_item" id="completion_date" value="<%=EuroDate (Date) %>" size="20" maxlength="10">
|
| 195 |
<td width="100%" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><textarea cols="80" rows="20" name="test_summary" class="form_item" id="test_summary"></textarea>
|
195 |
</td>
|
| 196 |
</td>
|
196 |
</tr>
|
| 197 |
</tr>
|
197 |
<tr>
|
| 198 |
<tr>
|
198 |
<td width="1%"> </td>
|
| 199 |
<td width="1%"> </td>
|
199 |
<td nowrap width="1%" valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Test Summary <%=Quick_Help ( "ut_summary" )%></td>
|
| 200 |
<td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
|
200 |
<td width="100%" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
| 201 |
<td nowrap width="100%"> <p> </p></td>
|
201 |
<textarea cols="80" rows="20" name="test_summary" class="form_item" id="test_summary"></textarea>
|
| 202 |
</tr>
|
202 |
</td>
|
| 203 |
</table>
|
203 |
</tr>
|
| 204 |
</DIV>
|
204 |
<tr>
|
| 205 |
|
205 |
<td width="1%"> </td>
|
| 206 |
<DIV id="DIV_AUTOBUILD_TEST" style="display:none;">
|
206 |
<td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
|
| 207 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
207 |
<td nowrap width="100%"> <p> </p></td>
|
| 208 |
<tr>
|
208 |
</tr>
|
| 209 |
<td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
209 |
</table>
|
| 210 |
Please read <a href="http://wiki.erggroup.com/mass/Wiki.jsp?page=UnitTestAutomationPaper" class="body_link" target="_blank">Unit Test Automation Paper</a>
|
210 |
</DIV>
|
| 211 |
|
211 |
|
| 212 |
</td>
|
212 |
<DIV id="DIV_AUTOBUILD_TEST" style="display:none;">
|
| 213 |
</tr>
|
213 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| 214 |
</table>
|
214 |
<tr>
|
| 215 |
</DIV>
|
215 |
<td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
| 216 |
|
216 |
Please read <a href="http://wiki.erggroup.com/mass/Wiki.jsp?page=UnitTestAutomationPaper" class="body_link" target="_blank">Unit Test Automation Paper</a>
|
| 217 |
|
217 |
</td>
|
| 218 |
</td>
|
218 |
</tr>
|
| 219 |
</tr>
|
219 |
</table>
|
| 220 |
<tr>
|
220 |
</DIV>
|
| 221 |
<td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
|
221 |
|
| 222 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
|
222 |
|
| 223 |
</tr>
|
223 |
</td>
|
| 224 |
</table>
|
224 |
</tr>
|
| 225 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
225 |
<tr>
|
| 226 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
226 |
<td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
|
| - |
|
227 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
|
| - |
|
228 |
</tr>
|
| - |
|
229 |
</table>
|
| - |
|
230 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
| - |
|
231 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
| 227 |
</form>
|
232 |
</form>
|
| 228 |
</body>
|
233 |
</body>
|
| 229 |
</html>
|
234 |
</html>
|
| 230 |
|
235 |
|
| 231 |
|
236 |
|