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

How can i check elements sorted in dorpdown using qtp..

1 Answers   Value Labs,


What is the latest version of qtp?

0 Answers  


Hai anyone please "Explain about Framework in QTP?"

6 Answers  


Which line will be executed 1-B(DP).P(OR.link(DP) 2-B(OR).P(Or).Link(DP)

2 Answers   Broadridge,


If you use low level recording,what objects will be recorded in Object Repository and what properties?

3 Answers   CTS,






wt is automation framework? give explonation?

1 Answers   Mindlance,


How do we connect QC by using QTP?

2 Answers   Infosys,


How to handle Run-time errors?

2 Answers  


how to load all resource files(function libraries,object repositories etc) into tests without associating them?

1 Answers  


Suppose I want to use Index value of "WinEdit" in my script .But it is showing None in "Ordinal identifier" value of Testobject Details in the Object Repository.How to enable Ordinal Identifiers to capture the Index value of that particular WinEdit. I have selected "index" and clicked "OK" from Tools-> Object Identification Again I added same WinEdit to the Object repository But I did not get Index value..Please any one help me.How to enable Ordinal indentifiers

1 Answers  


How can I pass values from one action to another in QTP ?

8 Answers   Ordain Solutions,


Associated files in QTP?

1 Answers  


Categories