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



1.can we parameterise object repository?how we can do it? 2.there is a name "mallikharjun"..

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

1.can we parameterise object repository?how we can do it? 2.there is a name "mallikharjun"..

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

1.can we parameterise object repository?how we can do it? 2.there is a name "mallikharjun"..

Answer / dfdf

gdfg

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

what are the 5 types of objects in qtp

6 Answers   ABC, TCS, Wipro,


what is the difference between parameters and arguments?

1 Answers  


what is a file system object in QTP

7 Answers  


hi,i have a pblm in qtp,im testing an webappl in which different types of error pop up messages are displayed which qtp is not differentiating or it is not recognising. how do i make it recognise different popup errorm messages while writing script?

4 Answers  


how to find that tools work well with ur existing system?

0 Answers  






CAn anybody tell me how can I use QTP to capture any video in my application?I want to see the video file opened in my application after the tests are completed in tests results.Can anybody help me?

6 Answers  


How many add-ins comes by default with quicktest professional (qtp)?

0 Answers  


Is it mandatory to know abt regular expression in descriptive programming

2 Answers  


What is the main difference between QTP 8.0& QTP 9.2.And what r the features and benefits of QTP.

1 Answers   HCL,


It is regarding VBScript, how to export our function results to ExcelSheet through VBscripting. Ex: I have written add function, that result should export to Excel.

3 Answers  


What is Object Spy?

7 Answers   JKH, Ordain Solutions,


how to capture objects of remote deskop as it is capturing only window.

1 Answers   Wipro,


Categories