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
Does Low-level recording capture mouse movements?
how can we compare descriptive programing with a regular expression
when will you do debug your script? and explain that process?
Explain the concept of how quicktest professional identifies object?
Hi All, How to Compare two strings character by character in QTP
if our qtp vb Script may be Currepted then What we want do?
Why is action split used by qtp?
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
What is throw object?
How you know that a test case is a regression test case
How will you find the current time of the remote machine using QTP script?
what is meant by Implicit and explicit requirements?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
How to record application running on the Virtual machine?
Can we create user defined functions in qtp?