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
Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.
Explain in brief about the quicktest professional (qtp) automation object model?
What do you mean by iteration?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
How to carry out bit map check points in QTP
What is the keyword view and expert view in qtp?
What is QTP’s model for test creation?
How many types of object repository in qtp?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
Can anybody post some real time scenario in qtp? please its very urgent.
Shall we add Local Repository to shared object repository,if yes,how we add
What are the automation metrice in your project?
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next