How will you set a unique four digit number in an edit
field in QTP?
Answer Posted / tvs ramakrishna chowdary
we can set 4 digit no in edit box field dynamically
-----------------------------------------------------
let assume password edit box is there
----------------------------------------
str="rama"
no=randomnumber(1000,10000)'here we are generating random
value between 1000,10000
pwd=str&no
password=crypt.encrypt(pwd)
objectheirarchy.edit("password").setsecure pwd
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
what type of framework u r using in ur organization
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
How many number of actions possible in qtp?
How do we handle run-time errors?
I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in
after initiating one project for testing, when exacltly QTP tester role starts?
Explain quicktest professional (qtp) testing process?
How many types of object repository in qtp?
What is recovery scenario in qtp?
Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance
Can I change properties of a test object?
What is ‘object spy’ and what is the function of object spy in qtp?