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 |
hou can we use vb script in qtp could u tell me breafly
In qtp, explain what is keyword driven automation framework?
Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation
i want to handle all the unwanted pop up through QTP i done that with recovery scenario but it need some title of pop up but i want that it should handle all the pop up even i don't give the title of that pop up in recovery scenario is there any general way to handle all the pop up please help
Plz explain about Virtual object? What is the situation u r using , explain with example?
Hi What are re-usable actions in QTP? -Thank You
How to find given string is palindrome or not without using strreverse() function?
some times we write user define functions.where we write main and sub program,how,where to insert the functions in qtp?
write vb script code to delete the duplicate values in an array.
Explain me in deatail about DATADRIVEN framework including scripts ?(realtimes plz)(Chandana)
How many tables r created during the recording in QTP?
Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same? ok but why descriptive?(only for w/o application)