Micro Focus QTP (UFT) Forums
DB Output Checking is not run during Schedule Script Run - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: DB Output Checking is not run during Schedule Script Run (/Thread-DB-Output-Checking-is-not-run-during-Schedule-Script-Run)



DB Output Checking is not run during Schedule Script Run - charmieaka - 04-23-2010

Hi,

I'm trying to run my script in a schedule time and it does work using the scripts found in this forum. In my scripts, I have lines of script for Database Output Value. Upon the script is running, I noticed that the line *(of codes) for DB Output Value checking have been skipped, then jump to the next scripts. There are no db output values displayed in DataTable.

Here are the scripts i got from this forum and then edited some particulars: -

Code:
Set App = CreateObject ("QuickTest.Application")
App.Launch
App.Visible = True
App.WindowState = "Maximized" ' Maximize the QuickTest window
App.ActivateView "ExpertView" ' Display the Expert View
App.open "D:\Program Files\HP\QuickTest Professional\Tests\NewTest", False
'Opens the test in editable mode


Dim Test_path
Test_path = "D:\Program Files\HP\QuickTest Professional\Tests\NewTest"
Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
Dim qtTest 'As QuickTest.Test ' Declare a Test object variable
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
qtApp.Launch ' Start QuickTest
qtApp.Visible = True ' Make the QuickTest application visible
' Set QuickTest run options
qtApp.Options.Run.RunMode = "Normal"
qtApp.Options.Run.ViewResults = False
qtApp.Open Test_path, True ' Open the test in read-only mode
' set run settings for the test
Set qtTest = qtApp.Test
qtTest.Run ' Run the test
'qtTest.Close ' Close the test
'qtApp.quit
Set qtTest = Nothing ' Release the Test object
Set qtApp = Nothing ' Release the Application object

Should I add some scripts in order for the db output value checking works? Please help..

Thanks!
Charmieaka


RE: DB Output Checking is not run during Schedule Script Run - Saket - 04-23-2010

More expalnation please.
paste your lines of code where you check the db output value.