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 |
WHICH PROCESS U FOLLOW IN COMPANY
in how many ways you perform batchtesting?
What are the factors on which script execution time is dependent?
suppose i opened 6browsers and i want re-open the 4browser what is code for this..pls help me..
Where we write the FUNCTIONS, in Expert view (or) in any textfiles like Notepad and save it in Library functions folder? How to cal that functions to our script? How to save that functions to Function generator?
how do you invoke the application through QTP?
QTP in mumbai
Plz give the vb script for the following scenerio I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to select from the drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. For every iliteration it should select A,then B and so on
hi, In A Table there are some columns and dynamic rows and in each row in first column there is a link with name. upon clicking on that link it will show some details. write the vbscript to check that link without descriptive programming?
What are parameterizing tests?
Explain the check points in QTP?
22 Answers Gray Matrix, IBM, Microsoft, Prapan Solutions, Zensar,
How 2check the color of the text in the textfield . say suppose the text entered in the textfield object is appearing in red. so i want to check whether the text is in red color or not. It could be great help for me if any one solve's my issue. plz...help