In QTP I have a parameter in a datatable that is a
sentence. I need to take the last word from the sentence
and enter it into a field in a web application. How can I
setup a parameter to enter in just a portion of the
parameter (last word of the sentence) instead of the entire
paramater (whole sentence).
Answer Posted / ravimmishra
SystemUtil.Run "notepad.exe", "","",""
iRCount = DataTable.GetSheet(dtGlobalSheet).GetRowCount
msgbox iRCount
For i = 1 to iRCount
sDatColVal = DataTable.Value("Comment")
sFinVal = Split(sDatColVal, " ")
iFinValLen = UBound(sFinVal)
Window("Notepad").WinEditor("Edit").Type sFinVal(iFinValLen) + micReturn
DataTable.SetNextRow
Next
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How many ways is to parameterize the value?
Is it possible to call from one action to another action in qtp?
Where can I find and view run-time data table?
What is the difference between a Function and Procedure in QTP?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
How to use checkpoints in qtp ?
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
what are the challenges you have faced while testing web based application using the automation tools ?
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
why should we give deliver good quality software?
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
What are the different recording modes and how do they work?
Is it possible to change the values of analog recording?
Hi, Can we open a test in qtp10 which is saved in qtp 9.2?
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?