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
How to call a test from another test?
How to handle the exceptions using the recovery scenario manager in qtp?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
why you have standardized functions? plzzz guys with real time exp. do answer
How can I change object description or check point values in qtp?
how will load the object during runtime?
what is meant by Implicit and explicit requirements?
What are the methods used in UFT to handle exceptions or run-time errors?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)
Should have experience in framework means?
What are the factors on which script execution time is dependent?