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
write the vb script for call to new action in qtp?
What is the difference between the design-time and run-time data tables?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
What is test object model in quicktest professional?
Explain how you can find length of array in qtp?
What is the basic concept of quicktest professional?
What is file database?
What is Unicode Compatibility?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)
How you can replace string in qtp?
How to use reporter.report event in qtp ?
What is TOM in QTP?
What are the five challenges you faced in QTP?
banking project description for software tester