Bug in QTP 9.2 DataTable
I was trying to copy Data from 1 web page's HTML table (.net Grid)in QTP Using DataTable
TableHead = browser(BrowserName).Page(PageName).WbfGrid(TableI dentity).GetCellData(StartingRow,cnt)
this Script is completely dynamic
but header of html table contains Some Special Char which is not allowed to put in header other then "_ " so it automatically Convert Special Char to "_ " .
but there is a very Big bug in this functionality Sometime it does not convert it to underscore and Eat that Special Char and sometime it Puts 2 Special Char.
it will create problem while dynamically reading those data from DataTable
Please Try inserting Excel File
containing special Char within it's first column and
try with (Space, * , \ , / , & , $ ,% ) etc
Please Tell me is there anyone who have faced this type of problem and is there any solution for this
Thanks in Advance
Re: Bug in QTP 9.2 DataTable
[ QUOTE ]
but there is a very Big bug in this functionality Sometime it does not convert it to underscore and Eat that Special Char and sometime it Puts 2 Special Char
[/ QUOTE ]
Bug...Naaaaaa....It's your code that's not handling it.
Look at the below code examples
DataTable.GlobalSheet.AddParameter "Tarun" & vbNewLine & "Lalwani", ""
DataTable.GlobalSheet.AddParameter "Tarun Lalwani", ""
DataTable.GlobalSheet.AddParameter "TarunLalwani", ""
And see what they add up in the run-time table.