str="QTP AUTOMATION TESTING"
here how many T are there in the str
finally i want to display the T
Answer Posted / karthik
i am thinking this will correct ...because he want to count
how many T are there ,for that it's correct..
and finally he want to display the T ,just read the question
once again ...if i wrong let me know...
str="QTP AUTOMATION TESTING"
dim l,m,n,p
l=len(str)
for i=1 to l
m=mid(str,i,1)
if m="T" then
n=n & m
end if
next
p=len(n)
msgbox P
msgbox n
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
what is description object?
Hello friends..... On which areas of an application we can not test with QTP
Where you get the run time data table?
How many types of recording facility are available in quicktest professional (qtp)?
How are actions and functions different in QTP?
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
How can I check if a environment variable exist or not?
Will down time for server and content maintenance/upgrades be allowed? how much?
What are the recording modes in qtp?
What are the challenges you faced during you entire life automation ?
What do you mean by checkpoints in qtp?
what is command for executing files?
What is expert view and keyword view?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.