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 is recovery scenario in qtp?

0 Answers  


Hello, I am learning QTP. I have recorded test for Login page, i have also inserted checkpoint for Email field & when I run test it passed. But when i tried to run test by inserting 'Adding Parameter Values to a Data Table' for email & password field, it pass the first value in both the fields but after that when test run for second parameter values it displays 'Internet Explorer cannot open the Internet site, Operation aborted' & when i analyze test result it displays run time error 'Object disable'. I have also cleared all the history from IE but it is not working. Please help me. Thank you.

2 Answers  


what is run-time object in qtp? explain with example?

2 Answers  


Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?

1 Answers   Crea,


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

0 Answers   IBM,






What is the difference in testing a client-server application and a web application?

0 Answers  


There are some links on the page,count and click those links and check the text on the page displayed on clicking the link.write script for this scenario.

0 Answers  


What is qtpro? What is a quick test professional?

0 Answers  


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

0 Answers  


How to get line numbers in your editor in expert view?

1 Answers  


How to identify 2 versions of browsers based on regular expression

1 Answers   Cognizant,


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

0 Answers   HSBC, T Mobile,


Categories