How to pass long string as input to QTP - 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: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: How to pass long string as input to QTP (/Thread-How-to-pass-long-string-as-input-to-QTP) |
How to pass long string as input to QTP - Anjali09 - 01-02-2012 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 RE: How to pass long string as input to QTP - Vaasu - 01-03-2012 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 ................................................................................" RE: How to pass long string as input to QTP - Anjali09 - 01-04-2012 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 RE: How to pass long string as input to QTP - vinod123 - 01-05-2012 Use Database Testing Wizard in Qtp Thomas Vinod |