Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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).

Answers were Sorted based on User's Feedback



In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the..

Answer / 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

In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the..

Answer / zak

Thank you for the helpful response! I included the code in
my script and it is taking the last word from the parameter
and putting it into notepad.

I now need to input this word into a field of the web page
as a security answer. What is the best way to do this? Is
it possible to replace the previous parameter (whole
sentence) with the new parameter (last word of the
sentence)?

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.

0 Answers   Wipro,


How to Run a Test using QTP?

1 Answers  


what are pretesting activities

0 Answers  


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

0 Answers  


How to handle Run-time errors?

1 Answers   Crea,






what version of test director supports the QTP? does testdirector supports the QTP9.0?

1 Answers  


h to all plz send me the answer if any one knows about this....i want the java add-ins for the QTP to do my project which is developed under the java platform.

2 Answers   Four soft,


which checkpoint we use to validate yahoo login screen window after login with ur id and password in qtp

8 Answers   Covansys,


I have given u a application.To automate it what are the things will u consider?

4 Answers   Wipro,


what r the main attributes of test automation?

0 Answers  


what is file database

1 Answers   Wipro,


Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?

5 Answers  






Categories