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


Please Help Members By Posting Answers For Below Questions

How many ways is to parameterize the value?

608


Is it possible to call from one action to another action in qtp?

546


Where can I find and view run-time data table?

511


What is the difference between a Function and Procedure in QTP?

666


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1535






How to use checkpoints in qtp ?

572


What are the things(properties, and other details) will be recorded while recording an object using normal recording?

1483


what are the challenges you have faced while testing web based application using the automation tools ?

583


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

1490


why should we give deliver good quality software?

1617


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1589


What are the different recording modes and how do they work?

603


Is it possible to change the values of analog recording?

559


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1424


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?

1463