1.can we parameterise object repository?how we can do it?
2.there is a name "mallikharjun".i want to get the vowels
in it through VBSCRIPT?
Answers were Sorted based on User's Feedback
Answer / rico
1. This is what i see in HELP documentation of QTP for
parameterization of OR---> "Repository parameters enable
you to specify that certain property values should be
parameterized, but leave the actual parameterization to be
defined in each test that is associated with the object
repository that contains the parameterized test object
property values".
You can see a lot more in the help documentation on this,
just do a search with the tag "Working with Repository
Parameters ".-- Hope this will help you
2.
str=”any string”
dim c as integer
for i=1 to len(str)
if mid(str, i,1) = ‘a’ or mid(str, i,1) = ‘e’
or mid(str, i,1) = ‘i’ or mid(str, i,1) = ‘o’
or mid(str, i,1) = ‘u’ or mid(str, i,1) = ‘A’
or mid(str, i,1) = ‘E’ or mid(str, i,1) = ‘I’
or mid(str, i,1) = ‘O’ or mid(str, i,1 = ‘U’
then
c=c+1
print mid(str, i,1) “This is “ , c, “Vowel”
end if
next
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / rico
Made few updates to above code
str= "jack sparrow"
dim c
for i=1 to len(str)
If mid(str,i,1) = "a" or
mid(str,i,1) = "e" or
mid(str,i,1) = "i" or
mid(str,i,1) = "o" or
mid(str,i,1) = "u" or
mid(str,i,1) = "A" or
mid(str,i,1) = "E" or
mid(str,i,1) = "I" or
mid(str,i,1) = "O" or
mid(str,i,1) = "U" then
c=c+1
msgbox mid(str, i,1) "this is a" &c "Vowel"
else
end if
next
Is This Answer Correct ? | 3 Yes | 1 No |
How to create a standard checkpoint ?
what kind of frame work you used in your last project?
In our application (Web based application)we will get a pdf file and we have check a particular text in that pdf. Can any one tell how to check text in a pdf file. In the same pdf file it generating some links and I have to click that links. QTP unable recognizing that links, even id did record and playback qtp does not generating any script. Can any one help me….?
In a yahoo web Application there are 65 links.one day it will opens 50 links and another day it will open 55 links.In this scenerio write Descriptive programing for Automation?....Pls write the code for this scenerio.
1 Answers College School Exams Tests, UHG,
Which version of QTP is using by companies nowadays?
Which object repository we use in real time and can we merge 2 object repostiory and how?
how to get font size of a "WebEdit"
Why do we use breakpoints in QTP?
What is the current version of QTP and now it is the product of Mercury or HP
What the differences are and best practical application of Object Repository?
before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...
Tell some commonly used Excel VBA functions?