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
Problem with XML checkpoint in QTP ?
what is error and fault in terms of software quality?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
Explain the concept of how quicktest professional identifies object?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
write a script to verify the image path(src property) of the images which are in web pages.
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
what is clean sweep?
Dis advantages of XML checkpoint ?
Explain advantages and disadvantages kdf?
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
How to record a qtp script ?
how to test Web application using QTP software
What is the synchronization point in qtp?