How to open any application during Scripting?

Answer Posted / ramyab.mca@gmail.com

Hai...

SystemUtil, object used to open and close applications and
processes during a run session. A SystemUtil.Run statement
is automatically added to your test when you run an
application from the Start menu or the Run dialog box while
recording a test
E.g : SystemUtil.Run "Notepad.exe"
SystemUtil.CloseDescendentProcesses (Closes all the
processes opened by QTP)

K,Byeee...
Thanks & Regards
B.Ramyasri

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain keyword driven framework with banking domain?

1785


How do you check ticket cost and ticket number in flight application?

838


What is smart identification in QTP?

847


Difference between test object and run time object?

786


after click on compose mail how can we attached a file in qtp with vbscript code

1917


Is qtp supports uni-code?

837


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

784


Write a script to customize the test results in PDF and HTML format.

2348


Is it possible to use two instances of UFT on the same machine? If not why?

853


What are the disadvantages of recording test cases in qtp?

825


What are the advantages of a Hybrid framework?

855


How to test background color and dynamic images during run time can you put the check point for moving objects?

1681


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1966


Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma

1565


Can launch two instances of qtp on the same machine?

790