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
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Tell me the difference between QTP9.2, QTP9.5 and QTP10.0
I have 5 no.of Action in my Test. Out off which i should make 3rd action as my start-up action. How should i make it?
what is flag=0 in qtp tool.. i am strugglin to use flag function , exactly when it is used , any real time expert pls explain clearly?
what are the difference between qtp8.2 to 9.0 surya
i this is balaji from chennai i have 4 yrs exp in testing and my qualification is bsc computers i completed in correspondace in which companiies accept the correspondace plz let me know
please send detail navigation for merging of object ripositories in QTP 8.2
3 Answers Infosys, Ordain Solutions,
Plz explain about object propeties in object identification? means.. explain about 1. mandatory properties.2. assestive properties 3. ordinal properties.
How to use library files in QTP? how we can call these files in to script?
Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.
5 Answers Lehman Brothers, rsystems,
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
Is there any option in QTP to add Java add-in after instaling the QTP?
HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview.