2

I'm facing an issue in which QTP is not fetching text property of a WinObject when the Text is too large. In other cases it's properly fetching the Text property.

Note: It's not fetching Text property in Object Spy as well as at run time using method GetROProperty.

See the below screen print in which it's working fine because the Text is not too large. Not Fetching Text Property - With Request Tab

But in Response Tab the text is too large & so it's not able to fetch the Text property. See the below screen print.

Fetching Text Property

TechGeek
  • 2,172
  • 15
  • 42
  • 69
  • Did you find the limit at which this problem starts to appear? – Motti Feb 16 '12 at 11:41
  • Do you want to verify all this text? Yes, looking at text present in "Response Tab" we can guess that QTP has limitation to fetch long text.You should use alternate method like copying this data to some txt then verify it – Amol Chavan Feb 16 '12 at 18:05

2 Answers2

0

QTP had this limitation in version 9.0 on text length to be about 16,383 characters. I am not sure whether this limitation exists in current versions as well.

Priyadarshi Kunal
  • 568
  • 3
  • 7
  • 21
0

I had come across this recently, to read all text from WinObject use the following piece of code (this worked for me),

bLargetext=Parent().Child().WinObject("objectname").Object.Document.text

Rajneesh Gaikwad
  • 1,193
  • 2
  • 14
  • 30
Prasad
  • 1