How can we test existence of a particular word in scentence
using QTP tool.
Thanks in Advance!!!!!
Answer Posted / 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 |
Post New Answer View All Answers
Explain how you can find the absolute value of the number in qtp?
Tell some commonly used Excel VBA functions?
What is QTP scenario.
I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)
can the activities of test case design be automated?
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
what is description object?
How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))
How can you pass value one action to another action?
which type of testing process are you following in ur company? how to recognize a qtp page?
Who uses qtp tool?
How to break the object spy ?