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 |
How to create frame work for qtp?
1 Answers Bank Of America, Polaris,
We have an action attached with the library file in QTP. When I will click on run button,which file is going to be executed first a)Action b)Library
Mention the test steps of qtp.
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..
what is the use of automation objective model?where is used? plz tell me
Hi, I Would Like to Know which is the Best QTP Certification Training Institute in Hyd? Thanks in Advance kishan
If u don't have any Knowledge on perticular application but they give that application to u for Testing ? Then How we wil move towards testing on that application?
when qtp recognizes a web link like (hyper link)wich properties it is going to take to identify the objects unquely? what is Ini file in QTP?
QTP 9.2, Issue: Creating Shared Object repository. I recorded 2 scripts. I exported the Object Repository to a shared location for the first script. Associated the exported repository to the first script and deleted the Local Repository for the First Script. Now Opened the Second script and try to Add the Local Object Repository of 2nd Script to Exported Object Repository. But I fail. Can anyone please help in providing steps that need to be followed in creating a shared object repository? Thanks in Advance.
what is vss and cvs what is main difference b/w these two
During test run,How will you copy/paste from/to clipboard?