DataTable.Value(ParameterID) does not work in BPT
Question ID: 104984
1
0

I am running the following code in BPT:


Dim strRefNum  
Datatable.Import("Z:\\color.xls")  
strRefNum = DataTable.Value("Color")  
msgbox "1 " & strRefNum  
strRefNum = DataTable.Value("Color", dtGlobalSheet)  
msgbox "2 " & strRefNum  

For the above code the first message box returns null value for strRefNum and the second message box returns correct. The DataTable.Value(ParameterID) worked in QTP 10 BPT and does not work with UFT 11.51. The help manual DataTable_Value_Help.PDF) states the sheet is optional. I have large number of scripts written in QTP 10 BPT and cannot change all of the code. NOTE: The Above code works with no problem as a QTP test script and only fails when run as BPT.

Marked as spam
Posted by (Questions: 45, Answers: 0)
Asked on April 30, 2013 3:20 pm
65 views
Answers (3)
0
Private answer

Hello,
I have a similar problem with UFT and I wanted to modify the registry key, but I can't find QEEE, I have only this: HKEY_CURRENT_USER->Software->MercuryInteractive->QuickTest Professional->MicTest. Do I have to install something else or what should I do in this case?

Thank you!

Marked as spam
Posted by (Questions: 0, Answers: 1)
Answered on October 22, 2013 6:51 am
0
Private answer

Good to know this answer since we will soon go to 11.51
Another way around this might be creating a new class to provide the dtGlobalSheet for the call when there is not a second parameter. Consider this if you have other areas of difficulties and do not want to use compatibility mode.

Marked as spam
Posted by (Questions: 2, Answers: 2)
Answered on April 30, 2013 3:52 pm
1
Private answer

If you have problems where old version of BPT components working in QTP 10 or 11 but not UFT 11.5 HP has provide me with the following.

You can modify the following registry key. This key will enable BPT to execute in compatibility mode.

''HKEY_CURRENT_USERSoftwareMercury InteractiveQuickTest ProfessionalMicTestQEEE'' key to the registry (In the QTP remote agent machine)
with the string value(REG_SZ) ExternalExecutionSupported=''No''

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on April 30, 2013 3:22 pm
0
That fix the problem, Thank you.
( at April 30, 2013 3:23 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top