Micro Focus QTP (UFT) Forums
Running test in bach mode failing some code - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Running test in bach mode failing some code (/Thread-Running-test-in-bach-mode-failing-some-code)



Running test in bach mode failing some code - umer830 - 12-14-2009

Hi,

I have two queries

1)
I am running below code to get a particular record in a webtable. when i run test in debug mode using QTP it works fine and returns target web element but some times it fails when i run straigh particularly using bath runner tool.

Code:
Set oDesc = Description.Create()
    oDesc("micclass").Value = "WebElement"
    oDesc("innertext").Value = HotLst_ID

Set ElementCollection = Browser("projectCentre QTP:TEST-BT:").Page("projectCentre QTP:TEST-BT:").Frame("ToDoRegFrame").ChildObjects(oDesc)
NumberOfelements = ElementCollection.Count


2)
In my batch i have 5 test script. After batch execution i can only see test results of last opened test script in QTP. Is there any way that i can see test report of all 5 executes test scripts combined in one final test report


any help is welcome