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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how to test Web application using QTP software

1323


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1269


Describe the differences between functions and actions in UFT?

598


How to test fly out menu in qtp?

510


Hi All, How to get repeated word in string . Thanks Balaji

921






Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1339


how can i call function (which has link with excell sheet at a remote location) within another function

1564


What are the various automation frameworks available in qtp?

494


what is test scheduleling?

2000


What is keyword view?

553


Explain measuring transaction.

577


1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me

1589


Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

1593


suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

1478


Define Error Pane of UFT?

682