In my QTP script I have a word in notepad that ends in a
question mark, for example... "father?" As part of my
script I want to delete the question mark. How do you
delete a character in notepad?
Answer Posted / ratikanta
Word="father?"
Set Fso=Createobject("scripting.filesystemobject")
Set Fs=Fso.opentextfie("path")
X=Fs.Readline
mydata=split(X," ")
If mydata=word Then
str=Replace(mydata,"?","")
EndIf
msgbox str
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the various types of Actions in UFT?
How do you capture tooltip using QTP?
can any one say that where we can download the QTP trail version ??????????
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
How can you write the scripts that operate on different objects depending on run-time information?
how do i know how to use tools
What are the different types of recovery operation?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?
give me an example where u used good judgement and logic in solving a problem
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
Difference between test object and run time object?
Suppose I want fail that check point? How can you do that?
How do you test DLL files using automation Tool QTP?