We need to verify the user name & password in for the user
validation. But we don't want to use the parameterization/
loop for user name and password. What is the way in
scripting so that user & password will generate automatically.

Answers were Sorted based on User's Feedback



We need to verify the user name & password in for the user validation. But we don't want t..

Answer / nn

Aparna u are correct..but he doesnt want parameterization.
thats what i mentioned in the above answer. if u generate
random number and passing that to user name and password,
it is one of the parameterization techique. Am i correct?
and another way is u can take the values
from environment, but this is also one of the
parameterization.

Is This Answer Correct ?    3 Yes 0 No

We need to verify the user name & password in for the user validation. But we don't want t..

Answer / aparna

You can generate username and password using random number
within a range ..convert the generated random numbers to
string using chr.

Is This Answer Correct ?    1 Yes 0 No

We need to verify the user name & password in for the user validation. But we don't want t..

Answer / aparna

Hi Rico could you please tell us what will be the content
inside the function.

Is This Answer Correct ?    1 Yes 0 No

We need to verify the user name & password in for the user validation. But we don't want t..

Answer / azbi

Hi

I ont knw when this was posted

but answer could be by regular Expression, since there will
a function which will restrict the charecters of a username
and pwd , i think using this we can do it

also QTP has a option to test regular expression

Is This Answer Correct ?    1 Yes 0 No

We need to verify the user name & password in for the user validation. But we don't want t..

Answer / sanju

We can use RND Function to generate any String automatically

Suppose the Length of Password which you need to enter is 4


For i=0 to 3
Var=Chr(97-65+1)*Rnd+65
Var1=Var1&Var
Next

97 and 65 are the ascii numbers which will generate the characters randomly

So i am converting ascii number to Chr

Is This Answer Correct ?    1 Yes 0 No

We need to verify the user name & password in for the user validation. But we don't want t..

Answer / nn

see..if u dont want parameterization means u have to use
constant values only. how u can generate user name and
password automatically.

Is This Answer Correct ?    2 Yes 2 No

We need to verify the user name & password in for the user validation. But we don't want t..

Answer / rico

http://www.allinterview.com/showanswers/73047.html Check
this link Aparna...Somebody has already stole my thuder

Is This Answer Correct ?    0 Yes 0 No

We need to verify the user name & password in for the user validation. But we don't want t..

Answer / beer bahadur singh

we can write like this

Browser("name:=Browser").Page(name:=Page").WebEdit
("name:=username").Set "abc"
Browser("name:=Browser").Page(name:=Page").WebEdit
("name:=password").Set "abc"

Is This Answer Correct ?    2 Yes 2 No

We need to verify the user name & password in for the user validation. But we don't want t..

Answer / praveen

The above is not my answer. So if you don't know, no need to
answer.

Is This Answer Correct ?    1 Yes 2 No

We need to verify the user name & password in for the user validation. But we don't want t..

Answer / rico

I think we can do this by writing a function...

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

Hi Friends, Can any one answer this question? 17) What method is used to retrieve the number of columns in the query results? A. Fields.Count B. Fields.Item(EOF) C. Fields.Count(BOF) D. Fields.Count.Value

2 Answers  


What are the trigger events in qtp?

0 Answers  


Explain about merging of two repositories?

3 Answers  


What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);

0 Answers  


Can we use same virtual objects in many number of tests?

1 Answers   TCS,






I have a tool for automation testing (eg:qtp).I have two functionality(A & B) to test.A is tested once in a year. B is tested everyday. At present i have the money and resource availability to automate only one functionality.Which one will u suggest and why?

3 Answers   Wipro,


How to associate shared object repository to test in qtp?

0 Answers  


we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?

0 Answers  


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

0 Answers  


does automation replace manual testing?

2 Answers  


How did u write macros?What is the main importance of VB macros in testing environment?

1 Answers  


wt is memory leakage?

6 Answers   BSL,


Categories