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
Answer / ravimmishra
SystemUtil.Run "notepad.exe", "","",""
iRCount = DataTable.GetSheet(dtGlobalSheet).GetRowCount
For i = 1 to iRCount
sDatColVal = DataTable.Value("Comment")
sFinVal = Split(sDatColVal, " ")
iFinValLen = UBound(sFinVal)
Window("Notepad").WinEditor("Edit").Type sFinVal(iFinValLen) + micReturn
|Is This Answer Correct ?||4 Yes||0 No|
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
|Is This Answer Correct ?||0 Yes||0 No|
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.
How to Run a Test using QTP?
what are pretesting activities
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?
How to handle Run-time errors?
what version of test director supports the QTP? does testdirector supports the QTP9.0?
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.
which checkpoint we use to validate yahoo login screen window after login with ur id and password in qtp
I have given u a application.To automate it what are the things will u consider?
what r the main attributes of test automation?
what is file database
Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?