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 |
1)Difference Between Value & RawValue?
How to retrieve particular cell data in excel sheet ?without importing method.
using descriptive programming how to close all opend browsers?
I've some problem in Descriptive programming plz help me. I've written in a click event code in Functional library when I run this flight reservation program It is not run. How to I write multiple click event in functional library. My program is this. I have associate an action with functional library. Public Function ClickButton(byval ApplicationName, byval WindowName, byval ObjectName, byref Comments) If Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Exist Then Dialog("text:=" &WindowName).Activate Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Click Elseif Window("text:="&ApplicationName).WinButton("text:=" &ObjectName).Exist Then Window("text:=" &ApplicationName).Activate Window("text:=" &ApplicationName).WinButton("text:=" &ObjectName).Click End if End Function
What is the difference betweent test and component?
What are the Test design techniques you uses in ur project?
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
1. What is diffrence between Analog Recording And Lomlevel Recording ?
How to Run a Test using QTP?
how u write vb script in qtp pls give me some basic script and some material
32 Answers Datamatics, UHG, Winit,
how to automate standalone infopath forms using QTP? (it is not a dotnet or a web form)
hi guys, pls tell me for testing institution training hub, hitech city is best or not?