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 |
does test plan is in test strategy or test strategy is in test plan.
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
How to retrieve value (data) from notepad using QTP ?
Explain the check points in quicktest professional?
Among all the check points what is the most important checkpoint?
How to database testing by manualy?in my db having 100 records when i am retriving the data from db it shows in frent end 30 records how to find bug using QTP?plz Exp realtimers (Chandana)
Iam trying to write script for Rediffmail Page,in doing so the script line for go button is not accepting. Is their any other way other than . Browser("micClass:=browser").Page("micClass:=Page").Link ("micClasss:=Link","name=go")
What is meant by Step Generator in Qtp How is it used? pls gimme in detail
what is descriptiveprograming? how to do object identification thrugh Descriptive and is possible smart identification or not
What is XML checkpoint in QTP. How we can use in Web Based application
where did you automate in your project?(please tell me example senarios)
What is the D/B Test managemet tool and bug trcking tool? Ans send to pbr.qtp@gmail.com