How to find the OS name by using QTP script?

Answers were Sorted based on User's Feedback



How to find the OS name by using QTP script?..

Answer / srinivasulu

environment.value("OS")

Is This Answer Correct ?    27 Yes 2 No

How to find the OS name by using QTP script?..

Answer / bfakruddin

I hope you know about Inbuilt Environment Variables...

So, Please go throw all Environment Variables... There, You
can get answer for it...

I can give exact answer here but you may not go throw all
environment variables... So, please go throw all inbuilt
environment variables and check what they perform...

It would be very helpful for your future tasks...

Thanks & regards
Baba Fakruddin.D

Is This Answer Correct ?    14 Yes 3 No

Post New Answer

More QTP Interview Questions

Can we directly start working with QTP without any knowledge on WinRunner? (After getting trsining on QTP)

1 Answers  


any one can explain about QTP proocess,means where to start and how to start Scripting.

3 Answers  


. Types of properties that Quick Test learns while recording?

2 Answers  


What is the difference between systemUtil and invoke method..?

5 Answers  


Extract a word from a sentenece?

5 Answers   IBM,






How can I import environment from a file on disk?

0 Answers  


1.In VB Script 100 lines Script. How can check the Syntax errors? 2. Write a VB Script for X = India/Srilanka/Australia/England/South Africa.I need the Output Country wise? [ 1st Msgbox India , 2nd Msgbox Srilanka] ---- 3. How can Choose these test cases to be automated?

5 Answers   HP,


How should I get results when I run scripts in a Batch mode

1 Answers   TCS,


what is the difference between QTP 8.0 & 9.0?

4 Answers  


In what occasion we can specify global sheet and action sheet?

0 Answers  


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

1 Answers  


what is the frame work your using in automation ?

4 Answers  


Categories