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 / saff
i am asuming there is only one "father?"
string in file
open the desired notepad
and them search for the desired string byusing instr
v = instr(filename,searchstring)'the position of the string
father
b=instr(filename,"?") 'the position of the ?
n =b-n ' will give the size of the string
now use the replace function to replace the ? with whatever
uw want
it will show the position of first occurance of the stirng
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How you can delete excel file in qtp?
Have you used xml check point in your project?
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
How can you give wait up to 10 seconds in qtp?
Get the count of files of similar types from a folder.
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
How do you convert manual test cases to automated test cases?
iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com
What is text/text area checkpoint?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
What is QTP’s model for test creation?
i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer
What is object spy in quicktest professional (qtp)?
How is UFT 11.5 version different from UFT 12.0?