How can we test existence of a particular word in scentence
using QTP tool.
Thanks in Advance!!!!!
Answers were Sorted based on User's Feedback
Answer / aiswaryan
By using "Instr" function u can do it.
InStr([start, ]string1, string2[, compare])
eg: MyPos = Instr(1, SearchString, SearchChar, 1)
msgbox MyPos
If Mypos returns a non-zero value, then the particular word
is present in a given string/sentence. If MyPos=0, then the
word is not present.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / ganesh
yes we can check the text using the Text checkpoint.
| Is This Answer Correct ? | 3 Yes | 0 No |
Using strcomp method we can check the string.
In web application string will be recognized as web element.
In window based application string will recognized as static.
first of all we have to capture the actual string which we
need to test. Then assign this to one variable. And allready
we have expected string. Assign this string to one variable.
then compare to strings with one more variable with help of
strcomp method.
If any clarifications mail to me. I will give detail
explanation with example. mskalyan.smile@gmail.com
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / andy
I think we can do that by inserting Text Checkpoint.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the check points can be inserted without recording?
Have you used xml check point in your project?
vb script for calling one function to the another function
what is L-trim function will do?
UFT 12.02 which ALM version will support
in my application,validation message has in japanise language.how to validate this message is appears properly or not
what is vmodel?advantages and disadvantages of vmodel?
write progamming connecting QTP to database sql? this is question asked by interview? pls any answer this?
Explain the benefits of quick test pro(qtp)?
What are the Features & Benefits of Quick Test Pro ?
What is qtp window?
can a Function return more than one value..??? if so please give me the code for that.
5 Answers DST Global Solutions,