Hoe to generate all numbers in between to numbers suppose
all numbers in between 1 to 100 using vbscript give me code
Answer Posted / vijaya777
for i=1 to 100 step +1
print i
next
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
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
How to attach a file to TD?
What is the difference between a Function and Action in QTP?
Does quicktest professional (qtp) is unicode compatible?
What are the common defects found in your project? (in qtp interview)
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
For which type of project the iterative model is suitable?
Is any limitation to xml checkpoints?
What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.
How to delete an object from the object repository?
What ate the Technologies supported by QTP?
What is the syntax to call one script from another?
How many tabs are available to view your test in a test pane and what are they?
What is qtpro? What is quick test pro?