how to create the varibles and how these are connect to qtp?
plz tell me

Answers were Sorted based on User's Feedback



how to create the varibles and how these are connect to qtp? plz tell me..

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

how to create the varibles and how these are connect to qtp? plz tell me..

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

how to create the varibles and how these are connect to qtp? plz tell me..

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

Post New Answer

More QTP Interview Questions

Where you are storing your script?

0 Answers  


what is selective recording ? and normal recording?

1 Answers   iSoft,


What is QTP?

3 Answers   Crea,


How software tester can use constants and variables in scripts?

0 Answers  


Hi Friends, Every one is posting the Answers for the existing questions.Try to post the questions that are asked in Recent Interviews.It will be useful to the other Job seekers.

1 Answers  






As u told write Libarary files in QTP. Do u use ever oject repositary 0r spy while writing scripts and for which type of testing u prepared test scripts.

1 Answers  


What is CMMP and CMMH?

0 Answers  


How to create an Action Template?

1 Answers  


How to execute a winrunner script in quicktest professional?

0 Answers  


give me the code to save all messages of inbox of gmail into a folder and notepad

0 Answers   Infosys,


Hi, how can we retrieve a specific value from Excel Sheet (Not datatable. for externel file).i mean to say from .xls file. and also tell me from xml file and .doc file. and how can u parameterize ur script from .xls file.(Not data table).

2 Answers   Cap Gemini,


what is KEYWORD DRIVEN TESTING ? I M NOT ASKIN WHAT IS KEY WORD VIEW PLZ ANS FOR ONLY WHAT IS KEYWORD DRIVEN TESTING EXACTLY THANX

3 Answers  


Categories