Subversion Repositories DevTools

Rev

Rev 5957 | Go to most recent revision | 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
'					Update 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_id
31
Dim rsQry
32
Dim rsUsr
33
Dim isDLocked
34
Dim sPath
35
Dim sPkgName
36
Dim sPkgVersion
37
Dim outFileName
38
'------------ Constants Declaration -----------
39
'------------ Variable Init -------------------
40
parPv_id = Request("pv_id")
41
parTest_id = Request("test_id")
42
parRtag_id = Request("rtag_id")
43
'----------------------------------------------
44
%>
45
<%
46
Sub Get_This_Unit_Test ( nTest_id, nPv_id, oRS )
47
	Dim Query_String
48
	Query_String = _
49
	"   SELECT tt.TEST_TYPE_NAME,"&_
50
	"		   ut.*"&_
51
	"	  FROM UNIT_TESTS ut,"&_
52
	"	  	   TEST_TYPES tt"&_
53
	"	 WHERE ut.TEST_TYPES_FK = tt.TEST_TYPE_ID"&_
54
	"	   AND ut.PV_ID = :PV_ID"&_
55
	"	   AND ut.TEST_ID = :TEST_ID"
56
	Query_String = Replace( Query_String, ":TEST_ID", nTest_id )
57
	Query_String = Replace( Query_String, ":PV_ID", nPv_id )
58
 
59
	Set oRS = OraDatabase.CreateDynaset( Query_String, cint(0))
60
End Sub
61
 
62
Function SQL_Get_Users ( nUser_id )
63
	SQL_Get_Users = _
64
	" SELECT usr.user_id, usr.full_name,"&_
65
	"	     DECODE(usr.user_id, "& nUser_id &", 'selected', NULL) AS selected"&_
66
	"   FROM USERS usr"&_
67
	"  WHERE usr.disabled = 'N'"&_
68
	" ORDER BY UPPER(usr.full_name)"
69
 
70
End Function
71
'----------------------------------------------------------------------------------------
72
%>
73
<%
74
'------------ Action Requirements -------------------
75
Call Get_Pkg_Short_Info(  parPv_id, NULL, NULL, NULL, NULL, NULL, isDLocked )
76
If isDLocked = "Y" Then
77
	' Move to Acceptance id package is locked
5957 dpurdie 78
    Call Destroy_All_Objects
5357 dpurdie 79
	Response.Redirect( "_wform_update_unit_test_acceptance.asp?test_id="& Request("test_id") &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id  )
80
End If
81
 
82
Call Get_This_Unit_Test ( parTest_id, parPv_id, rsQry )
83
Call Get_Pkg_Short_Info(  Request("pv_id"), NULL, sPkgName, sPkgVersion, NULL, NULL, NULL )
84
%>
85
 
86
<html>
87
<head>
88
<title>Release Manager</title>
89
<link rel="shortcut icon" href="<%=FavIcon%>"/>
90
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
91
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
92
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
93
<link rel="stylesheet" href="images/navigation.css" type="text/css">
94
<script language="JavaScript" src="images/common.js"></script>
95
<!--#include file="_menu_def.asp"-->
96
<!-- TIPS -->
97
<script language="JavaScript" src="images/tipster.js"></script>
98
<script language="JavaScript" src="images/_help_tips.js"></script>
99
</head>
100
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
5590 dpurdie 101
<form class="form_tight" action="_update_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;">
102
   <table border="0" cellspacing="0" cellpadding="2">
5357 dpurdie 103
    <tr> 
104
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
105
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
106
          <tr>
107
            <td width="1%" nowrap class="sublbox_hitem"><img src="images/h_trsp_dot.gif" width="10" height="30"><%If Request("save_stat") <> "" Then%>Saving complete.<%End If%></td>
108
            <td width="100%" align="right" valign="bottom">
109
			<!-- TABS ------------------------------------->
110
			<%Call Generate_Tab_Menu ( TABarray6, "Unit Test Details", "blue" )%>
111
			</td>
112
          </tr>
113
          <tr>
114
            <td background="images/lbox_bg_blue.gif"></td>
115
            <td background="images/lbox_bg_blue.gif">&nbsp;</td>
116
          </tr>
117
        </table>
118
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
119
          <tr> 
120
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
121
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
122
            <td nowrap width="100%">&nbsp; </td>
123
          </tr>
124
          <tr> 
125
            <td>&nbsp;</td>
126
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Test 
127
              Type <%=Quick_Help ( "ut_test_type" )%></td>
128
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
129
			<select name="test_type" class="form_item" disabled>
130
				<option><%=rsQry("test_type_name")%></option>
131
            </select></td>
132
          </tr>
133
          <tr> 
134
            <td>&nbsp;</td>
135
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field"></td>
136
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">
137
			<%If rsQry("test_types_fk") = 5 Then%>
138
			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> 
139
			<span class="rep_small">NOTE: Root dpkg_archive URL is <%=dpkg_archiveURL%></span>
140
			<%Else%>
141
			Results File Attachment <br><input name="results_file" type="file" class="form_item" size="65" class="form_txt">
142
			<%End If%>
143
            </td>
144
          </tr>
145
          <tr>
146
            <td>&nbsp;</td>
147
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Passed<br>
148
              # / Total <%=Quick_Help ( "ut_passed" )%></td>
149
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><input name="numof_test" type="text" class="form_item" id="numof_test" value="<%=rsQry("numof_test")%>" size="20">
150
            </td>
151
          </tr>
152
          <tr> 
153
            <td>&nbsp;</td>
154
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Completion 
155
              Date </td>
156
            <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 ( rsQry("completion_date") ) %>" size="20" maxlength="10"> 
157
            </td>
158
          </tr>
159
          <tr> 
160
            <td width="1%">&nbsp;</td>
161
            <td nowrap width="1%" valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Test Summary <%=Quick_Help ( "ut_summary" )%></td>
162
            <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"><%=rsQry("test_summary")%></textarea> 
163
            </td>
164
          </tr>
165
          <tr> 
166
            <td width="1%">&nbsp;</td>
167
            <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
168
            <td nowrap width="100%"> <p>&nbsp;</p></td>
169
          </tr>
170
      </table> </td>
171
    </tr>
5590 dpurdie 172
    <tr> 
173
	  <td width="100%" align="right" nowrap class="wform_ttl">
174
		<input type="submit" name="btn" value="Save" class="form_btn">
175
		<input type="reset" name="btn" value="Close" class="form_btn" onclick="parent.closeIFrame();">
176
      </td>
5357 dpurdie 177
    </tr>
178
  </table>
179
  <input type="hidden" name="save_stat" value="true">
180
  <input type="hidden" name="action" value="true">
181
  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
182
  <input type="hidden" name="test_id" value="<%=parTest_id%>">
183
  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
184
  <input type="hidden" name="test_type_id" value="<%=rsQry("test_types_fk")%>">
185
</form>
186
</body>
187
</html>
188
<!-- DESTRUCTOR ------->
119 ghuddy 189
<!--#include file="common/destructor.asp"-->