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 / satya
U can do it with SFO script[I am not sure of Syntax or
exact code,just approach I m Mentioning Below]-
Set oObj=createObject("Script.FyleSystemObject")
oFile=oObj.openTextFile("YourPath")
Do Until EndOfSream
oStr=oObj.readLine
if InStr(oStr,"?")>0 Then
RePlace(oSter,"?","")
Loop
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is checkpoint in qtp?
Why qtp always start action1 and does not start action?
How the smart identification is used in real time?Please explain with an example
How u will do versioning in QTP?
How to find operating system information using the qtp script?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
How do you configure QTP AND Test director?
assume i have few url link how will i dynamically call then using descriptive programming?
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
How to explain a banking project in interview as a test engineer???
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
There is an excel file of 1 to 100 sheets how you will iterate through it?
Without using gui map editor we can recognize the application in winrunner ?
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")