Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to pass long string as input to QTP
#1
Not Solved
Hi,

I am trying to pass Db queries as input parameters to BPT components.
For queries longer that 1026 Char, i am getting error, as QTP accepts only 1026 character from the query string and truncate rest string.

Is there any way to increase the lenght of the string that can be passed tp QTP.
Or any other work around, to pass the complete query.

I am passing this query string as an input to the ADODB object.

Thanks in advance,
Anjali
Reply
#2
Not Solved
Try to pass the entire SQL Query in single line. I have SQLQueries, those were really long and I am sure they are more than 1026 character limit. I did concatenate the entire query in single line string, it did work properly.

SQLQuery = "Select * from ................................................................................"
Reply
#3
Not Solved
Hi Vasu,

Thanks for the reply.

I tried passing the whole query in one string, even by that its taking 1026 characters only.

Thanks,
Anjali
Reply
#4
Not Solved
Use Database Testing Wizard in Qtp

Thomas Vinod
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QC Environment Input Omegadash 0 1,419 10-15-2015, 11:53 AM
Last Post: Omegadash
  QTP changes string returned from DB to date format Odette 2 2,308 06-02-2015, 01:46 PM
Last Post: Odette
  Some one help me how to pass the password to application through qtp like starts leelasan 2 2,162 02-07-2014, 07:43 PM
Last Post: leelasan
  QTP 11 not identifying web objects using string based DP ankit5815 1 3,385 07-16-2012, 10:36 AM
Last Post: sshukla12
  Unable to identify chckboxes after long execution mahendra 2 2,407 01-21-2012, 03:48 PM
Last Post: mahendra

Forum Jump:


Users browsing this thread: 1 Guest(s)