| 5356 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| Unit Tests |
|
|
|
6 |
'| |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
Response.Expires = 0
|
|
|
12 |
%>
|
|
|
13 |
<!--#include file="common/globals.asp"-->
|
|
|
14 |
<!--#include file="common/config.asp"-->
|
|
|
15 |
<!--#include file="common/common_subs.asp"-->
|
|
|
16 |
<!--#include file="common/_product_common.asp"-->
|
|
|
17 |
<!--#include file="common/formating.asp"-->
|
|
|
18 |
<%
|
|
|
19 |
'------------ ACCESS CONTROL ------------------
|
|
|
20 |
%>
|
|
|
21 |
<!--#include file="_access_control_general.asp"-->
|
|
|
22 |
<%
|
|
|
23 |
'------------ VARIABLE DEFINITION -------------
|
|
|
24 |
Dim rsQry
|
|
|
25 |
Dim errNumber
|
|
|
26 |
Dim objIssueCollector
|
|
|
27 |
Dim altRowColor
|
|
|
28 |
Dim currRowColor
|
|
|
29 |
Dim outORDER_BY
|
|
|
30 |
Dim sPkgName
|
|
|
31 |
Dim sPkgVersion
|
|
|
32 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
33 |
Const LIMG_FIXED = "<img src='icons/i_tick.gif' border='0' hspace='2' title='Latest Fixed Issue'>"
|
|
|
34 |
Const LIMG_OLD_FIXED = "<img src='icons/i_tick_gray.gif' border='0' hspace='2' title='Old Fixed Issue'>"
|
|
|
35 |
'------------ VARIABLE INIT -------------------
|
|
|
36 |
errNumber = 0
|
|
|
37 |
Set objIssueCollector = CreateObject("Scripting.Dictionary")
|
|
|
38 |
'------------ CONDITIONS ----------------------
|
|
|
39 |
'----------------------------------------------
|
|
|
40 |
%>
|
|
|
41 |
<%
|
|
|
42 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
43 |
Sub GetIssueDetails ( nIssID, nIssDB, oIssueCollector, nErrNumber )
|
|
|
44 |
Dim query, rsQry
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
If nErrNumber = 0 Then
|
|
|
49 |
If (NOT rsCQ.BOF) AND (NOT rsCQ.EOF) Then
|
|
|
50 |
oIssueCollector.Item ("iss_id") = CStr( rsCQ("iss_id") )
|
|
|
51 |
oIssueCollector.Item ("iss_num") = CStr( rsCQ("iss_num") )
|
|
|
52 |
oIssueCollector.Item ("summary") = CStr( rsCQ("summary") )
|
|
|
53 |
oIssueCollector.Item ("status") = CStr( rsCQ("status") )
|
|
|
54 |
oIssueCollector.Item ("priority") = CStr( rsCQ("priority") )
|
|
|
55 |
oIssueCollector.Item ("issue_type") = CStr( rsCQ("issue_type") )
|
|
|
56 |
|
|
|
57 |
End If
|
|
|
58 |
End If
|
|
|
59 |
|
|
|
60 |
End Sub
|
|
|
61 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
62 |
Function SetRowColor( cRowColor )
|
|
|
63 |
If cRowColor = "" Then
|
|
|
64 |
SetRowColor = altRowColor
|
|
|
65 |
Else
|
|
|
66 |
SetRowColor = ""
|
|
|
67 |
End If
|
|
|
68 |
End Function
|
|
|
69 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
70 |
Function SQL_Unit_Tests ( nPv_id )
|
|
|
71 |
SQL_Unit_Tests = ReadFile( rootPath & "queries\unit_tests.sql" )
|
|
|
72 |
SQL_Unit_Tests = Replace( SQL_Unit_Tests, ":PV_ID", nPv_id )
|
|
|
73 |
End Function
|
|
|
74 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
75 |
%>
|
|
|
76 |
<%
|
|
|
77 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
78 |
'----------------------------------------------
|
|
|
79 |
Call Get_Pkg_Short_Info( Request("prod_id"), NULL, sPkgName, sPkgVersion, NULL, NULL, NULL )
|
|
|
80 |
%>
|
|
|
81 |
<html>
|
|
|
82 |
<head>
|
|
|
83 |
<title>Production Manager</title>
|
|
|
84 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
85 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
86 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 6671 |
dpurdie |
87 |
<link href="scripts/deployment_manager.css?ver=<%=VixVerNum%>" rel="stylesheet" type="text/css">
|
|
|
88 |
<script language="JavaScript" src="scripts/common.js?ver=<%=VixVerNum%>"></script>
|
|
|
89 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
| 5356 |
dpurdie |
90 |
</head>
|
|
|
91 |
|
|
|
92 |
<body leftmargin="0" topmargin="0">
|
|
|
93 |
<!-- HEADER ++++++++++++++++ -->
|
|
|
94 |
<!--#include file="_header.asp"-->
|
|
|
95 |
<!-- +++++++++++++++++++++++ -->
|
|
|
96 |
<!-- MAIN MENU + CRUMBS ++++++++++++++++ -->
|
|
|
97 |
<!--#include file="_main_menu.asp"-->
|
|
|
98 |
<!-- +++++++++++++++++++++++++++++++++++++ -->
|
|
|
99 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
100 |
<tr>
|
|
|
101 |
<td width="1%" valign="top" background="images/bg_bage_0.gif">
|
|
|
102 |
<!-- NODE BROWSER ++++++++++++++++++++++ -->
|
|
|
103 |
<!--#include file="_bom_browser.asp"-->
|
|
|
104 |
<!-- END OF NODE BROWSER +++++++++++++++ -->
|
|
|
105 |
</td>
|
|
|
106 |
<td width="1" background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="600"></td>
|
|
|
107 |
<td width="100%" valign="top" bgcolor="#FFFFFF">
|
|
|
108 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
109 |
<tr>
|
|
|
110 |
<td valign="top" background="images/bg_green.gif"></td>
|
|
|
111 |
<td align="right" valign="bottom" background="images/bg_green.gif" class="body_txtw"><%Call RenderTitle( objProdCollector )%></td>
|
|
|
112 |
<td background="images/bg_green.gif"><img src="images/spacer.gif" width="10" height="20"></td>
|
|
|
113 |
</tr>
|
|
|
114 |
<tr>
|
|
|
115 |
<td width="1%" valign="top" background="images/bg_green.gif"></td>
|
|
|
116 |
<td width="100%" valign="bottom" background="images/bg_green.gif">
|
|
|
117 |
<!-- TAB CONTROLS ++++++++++++++++++++++ -->
|
|
|
118 |
<!--#include file="_tabs_definition.asp"-->
|
|
|
119 |
<%
|
|
|
120 |
Set objTabControl = New TabControl
|
|
|
121 |
objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleWinXP/tab_style.html") ) ' Supply tab style definition
|
|
|
122 |
objTabControl.TabStyle = "StyleWinXP"
|
|
|
123 |
objTabControl.AddTabDefnition ( arrProdTabDef )
|
|
|
124 |
objTabControl.SelectByName ("Test Documents")
|
|
|
125 |
objTabControl.Render ()
|
|
|
126 |
%>
|
|
|
127 |
<!-- END OF TAB CONTROLS +++++++++++++++ -->
|
|
|
128 |
</td>
|
|
|
129 |
<td width="1%" background="images/bg_green.gif"><img src="images/spacer.gif" width="10" height="35"></td>
|
|
|
130 |
</tr>
|
|
|
131 |
<tr>
|
|
|
132 |
<td background="images/bg_bage_0.gif"><img src="images/spacer.gif" width="30" height="10"></td>
|
|
|
133 |
<td background="images/bg_bage_0.gif">
|
|
|
134 |
<!-- BUTTONS CONTROL +++++++++++++++++++ -->
|
|
|
135 |
<%
|
|
|
136 |
'-- Define Action buttons on this tab
|
|
|
137 |
'aTabBtnsDef = Array("btnAddOs", "width=10", "btnCopyOs", "btnPasteOs")
|
|
|
138 |
|
|
|
139 |
'Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
|
|
|
140 |
|
|
|
141 |
'objBtnControl.Render( aTabBtnsDef )
|
|
|
142 |
%>
|
|
|
143 |
<!-- +++++++++++++++++++++++++++++++++++ -->
|
|
|
144 |
</td>
|
|
|
145 |
<td background="images/bg_blue.gif"><img src="images/p_bar_corrner.gif" width="17" height="42"></td>
|
|
|
146 |
</tr>
|
|
|
147 |
<tr>
|
|
|
148 |
<td> </td>
|
|
|
149 |
<td> </td>
|
|
|
150 |
<td valign="top"><%If Request.Cookies( enumCOOKIE_NAME )( "user_bar" ) = "hide" Then%><a href="<%=SCRIPT_NAME%>?user_bar=<%=enumDEFAULT%>&<%=objPMod.ComposeURL()%>"><img src="icons/b_left.gif" title="Maximize favourits" width="13" height="13" vspace="5" border="0"></a><%End If%></td>
|
|
|
151 |
</tr>
|
|
|
152 |
</table>
|
|
|
153 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
|
|
154 |
<tr>
|
|
|
155 |
<td>
|
|
|
156 |
<!-- PAGE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
<table width="100%" border="0" cellspacing="3" cellpadding="0">
|
|
|
161 |
<tr>
|
|
|
162 |
<td nowrap <%Call DisplayColumn("Test Document Type", NULL, outORDER_BY, FALSE)%></td>
|
|
|
163 |
<td nowrap <%Call DisplayColumn("Test Summary", NULL, outORDER_BY, FALSE)%></td>
|
|
|
164 |
<td nowrap <%Call DisplayColumn("Test Completed", NULL, outORDER_BY, FALSE)%></td>
|
|
|
165 |
<td nowrap <%Call DisplayColumn("Results", NULL, outORDER_BY, FALSE)%></td>
|
|
|
166 |
</tr>
|
|
|
167 |
<%
|
|
|
168 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Unit_Tests ( Request("prod_id") ), cint(0))
|
|
|
169 |
|
|
|
170 |
altRowColor = "bgcolor='#F7F7F8'"
|
|
|
171 |
currRowColor = ""
|
|
|
172 |
|
|
|
173 |
Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
174 |
'Call GetIssueDetails ( rsQry("iss_id"), rsQry("iss_db"), objIssueCollector, errNumber )
|
|
|
175 |
|
|
|
176 |
currRowColor = SetRowColor( currRowColor )
|
|
|
177 |
|
|
|
178 |
If errNumber <> 0 Then Exit Do
|
|
|
179 |
%>
|
|
|
180 |
<tr>
|
|
|
181 |
<td <%=currRowColor%> nowrap class="body_rowlite"><%=rsQry("test_type_name")%></td>
|
|
|
182 |
<td <%=currRowColor%> nowrap class="body_rowlite"><%=rsQry("test_summary")%></td>
|
|
|
183 |
<td <%=currRowColor%> nowrap class="body_rowlite"><%If ( NOT IsNull(rsQry("tester")) ) Then%><%= ( rsQry("completion_date") )%><br>by <a href="mailto:<%=rsQry("tester_email")%>" class="txt_linked"><%=rsQry("tester")%></a><%End If%></td>
|
|
|
184 |
<td <%=currRowColor%> nowrap class="body_rowlite"><a href="<%=TEMP_FOLDER &"/"& sPkgName &"/"& sPkgVersion &"/"& rsQry("results_attachment_name")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a></td>
|
|
|
185 |
</tr>
|
|
|
186 |
<%rsQry.MoveNext%>
|
|
|
187 |
|
|
|
188 |
<%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
|
|
|
189 |
<tr>
|
|
|
190 |
<td colspan="6"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
191 |
</tr>
|
|
|
192 |
<%End If%>
|
|
|
193 |
|
|
|
194 |
<%
|
|
|
195 |
Loop
|
|
|
196 |
rsQry.Close()
|
|
|
197 |
Set rsQry = Nothing
|
|
|
198 |
%>
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
<%If errNumber <> 0 Then '--- Handle any errors during data retrieve from MS SQL database (i.e. Cannot connect to DB.)%>
|
|
|
202 |
<tr>
|
|
|
203 |
<td colspan="6">
|
|
|
204 |
<%Response.write enumMSSQL_ERROR%>
|
|
|
205 |
</td>
|
|
|
206 |
</tr>
|
|
|
207 |
<%End If%>
|
|
|
208 |
|
|
|
209 |
<tr>
|
|
|
210 |
<td colspan="6" background="images/bg_table_border.gif">
|
|
|
211 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
212 |
<tr>
|
|
|
213 |
<td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
214 |
</tr>
|
|
|
215 |
</table>
|
|
|
216 |
</td>
|
|
|
217 |
</tr>
|
|
|
218 |
</table>
|
|
|
219 |
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
220 |
</td>
|
|
|
221 |
</tr>
|
|
|
222 |
</table>
|
|
|
223 |
</td>
|
|
|
224 |
<td width="1%" valign="top" background="images/bg_favourits.gif">
|
|
|
225 |
<!-- PERSONAL BAR +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
226 |
<!--#include file="_personal_bar.asp"-->
|
|
|
227 |
<!-- END OF PERSONAL BAR ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
228 |
</td>
|
|
|
229 |
</tr>
|
|
|
230 |
<tr>
|
|
|
231 |
<td background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="15"></td>
|
|
|
232 |
<td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
233 |
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
234 |
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
235 |
</tr>
|
|
|
236 |
<tr>
|
|
|
237 |
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="20"></td>
|
|
|
238 |
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
239 |
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
240 |
<td bgcolor="#FFFFFF"> </td>
|
|
|
241 |
</tr>
|
|
|
242 |
</table>
|
|
|
243 |
<!-- FOOTER ++++++++++++++++ -->
|
|
|
244 |
<!--#include file="_footer.asp"-->
|
|
|
245 |
<!-- +++++++++++++++++++++++ -->
|
|
|
246 |
</body>
|
|
|
247 |
</html>
|