diff between global variables and environment variables in qtp?

Answer Posted / ramchandra patil

Hi,

There is not a such difference between Global variables and
Environment variables they work same.but following points
need to consider.

1. Environment variables is a feature of QTP where as
Global variables we explicitly declare as a Public in VB
scripting.
2. if you wanted to create or access environment variables
you need to use Environment object where as we do not need
to use for the global variables.
3. There are three types of EV's a. Inbuilt b. Internal c.
External


Ramchandra Patil
9699851282

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How QTP identify the system time that's changes every seconds?

590


Suppose I want fail that check point? How can you do that?

596


distinguish between old version and new version QTP features.

1855


Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation

1578


This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?

1463






Give the syntax to load function at run time.

618


What are the types of object repository in qtp?

559


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

1419


how to disable the pop ups through QTP using a script

1718


How to use debug tools?

2191


If created one virtual object? Next time I changed the window position will it work?

572


how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

2443


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1751


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1458


How do you synchronization point through DP?

593