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
What is the basic concept of qtp?
What is method name to compare two XML files.
Discuss quicktest professional environment?
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
hi nani my doubt is how does qtp process metrix related to software process.
what is object and child object.. explain ..if possible give some example for better understanding ..
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
How to suppress warnings from the test results page?
how to explain a claims and insurance project?
I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
What are the common defects found in your project? (in qtp interview)
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
What are the methods used in UFT to handle exceptions or run-time errors?