nkonda
02-08-2005, 04:15 PM
Hi, I am new to Micrsoft, am trying to implement a database connection using (Mercury Interactive's) QualityCenter API in global.asa file.
Here is my Global.asa file
=========================================================
<script language="vbscript" runat="server">
application("tdc")=""
application("bfact")=""
application("bList")=""
Dim Server, Domain, Project,bfact
application("Server") = "http://lns15i-1803.csfp.co.uk:10002/qcbin/"
application("Domain") = "PRIMESERVICES"
application("Project") = "PSTest"
'Project = Request.QueryString("proj")
application("Username")= "itreporter"
application("Password") = ""
' Initialse QC connection to open com functions
Set tdc = CreateObject("tdapiole80.tdconnection.1")
'Connection to Quality Center
'On Error Resume Next
tdc.InitConnection Server , Domain
tdc.ConnectProject Project, Username, Password
If tdc.ProjectConnected = True Then
End If
end sub
</script>
=========================================================
In my .asp page i am trying to use to access the values from "tdc" object, something like
Set bfact = tdc.BugFactory
I am getting the following error
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
Things are working fine when I am implementing the whole database connection in my .asp page itself.
Could anybody help me?
Thanks
Here is my Global.asa file
=========================================================
<script language="vbscript" runat="server">
application("tdc")=""
application("bfact")=""
application("bList")=""
Dim Server, Domain, Project,bfact
application("Server") = "http://lns15i-1803.csfp.co.uk:10002/qcbin/"
application("Domain") = "PRIMESERVICES"
application("Project") = "PSTest"
'Project = Request.QueryString("proj")
application("Username")= "itreporter"
application("Password") = ""
' Initialse QC connection to open com functions
Set tdc = CreateObject("tdapiole80.tdconnection.1")
'Connection to Quality Center
'On Error Resume Next
tdc.InitConnection Server , Domain
tdc.ConnectProject Project, Username, Password
If tdc.ProjectConnected = True Then
End If
end sub
</script>
=========================================================
In my .asp page i am trying to use to access the values from "tdc" object, something like
Set bfact = tdc.BugFactory
I am getting the following error
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
Things are working fine when I am implementing the whole database connection in my .asp page itself.
Could anybody help me?
Thanks