how to create the varibles and how these are connect to qtp?
plz tell me
Answers were Sorted based on User's Feedback
Answer / vengalrao
creating the variables through XML Failes and associate to
the test script or other wise direct write the script
statment Environment.Value("variable name" or
parameterizing the value)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / harsh pruthi
The question is bit vague
You can use the the variables directly in the script by
using DIM x as Number or if the Varibes need to be used
across the test case the can be defined as the environmet
variables
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / fayaz
As we already know that QTP makes use of VB script, so
declaration of variable will be as follows:
Dim x
and if u wnt to make use of the variable across all the
actions in ur test then the declaration of the variable
will be as follows:
Environment("variable_name").value
and..now u can make use of this environment value anywhere
in ur test...
| Is This Answer Correct ? | 0 Yes | 2 No |
What is 'sleep' in sync point?
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
we have one text box and one list box(list box appear in same page or another page) what ever the text enter in text box that must be displyed in list box as first one. for example if we enter 10 in text box that is the 1st item in list box . after that we enter 11 then 11 is the 1st item and 10 is 2nd item. the maximum limit of list box is 10 items. if we enter 11th item the 10th item is deleted and llth one is add as 1st one and 9th one goes to 10th position part2:maore than the answer for this question i want the the reason why testers go for this kind of risk.what is the use of we testers having these kind of attempts.is that not the problem with the developer .pls answer .real time users of tools.in which way these solutions help to test with r without affecting the developed souce code.
when to start the automation?
Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
What is the expert view?
What is the logic for reading(exporting)the data from flat files to QTP?Can anyone explain me with an example? I appreciate it!!! Thanks!!! Prasanna
how you test broken link using the automated tool QTP ?
What is Description Object?
what is difference between application testing and product testing?
Distinguish between manual testing and automation testing