Launching the applicaiton using scripting
===================================
1. invokeapplication :
----------------------------
It is used to launch only Executable files that is .exe files
Syntax:
-------------
1. for..window base application
eg: invokeapplication "<exe path>"
2. for..webbased app
eg: invokeapplication "<exe path><spacebar><URL> "
examples
Open flight application login window
------------------------------------------------
invokeapplication "C:\Program Files (x86)\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
Eg2: Launch IE and Open Gmail
---------------------------------------------
invokeapplication "C:\Program Files (x86)\Internet Explorer\iexplore.exe https://gmail.com"
Open in google page in FF
---------------------------------------
exe_path="C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
url="http://google.com"
invokeapplication exe_path&" "&url
2. Systemutil.Run :
---------------------------
It is used to launch all files
Syntax:
--------------
1. windowbase
systemutil.Run "<exepath>"
2. Webbasedd
to open url
Systemutil.Run "<Exepath>","<URL>"
To Open file
-------------------
systemutil.Run "<filepath>"
Eg:
iePath="C:\Program Files (x86)\Internet Explorer\iexplore.exe"
url="http://Google.com"
systemutil.Run iePath,url
Window
-----------------
Systemutil.Run "C:\Program Files (x86)\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
Systemutil.Run "C:\Users\Administrator\Desktop\Oct172015"
Open only ie browser
-----------------------------
Systemutil.Run "C:\Program Files (x86)\Internet Explorer\iexplore.exe"
Systemutil.Run "C:\Users\Administrator\Desktop\Testing\Sample.txt"
===================================
1. invokeapplication :
----------------------------
It is used to launch only Executable files that is .exe files
Syntax:
-------------
1. for..window base application
eg: invokeapplication "<exe path>"
2. for..webbased app
eg: invokeapplication "<exe path><spacebar><URL> "
examples
Open flight application login window
------------------------------------------------
invokeapplication "C:\Program Files (x86)\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
Eg2: Launch IE and Open Gmail
---------------------------------------------
invokeapplication "C:\Program Files (x86)\Internet Explorer\iexplore.exe https://gmail.com"
Open in google page in FF
---------------------------------------
exe_path="C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
url="http://google.com"
invokeapplication exe_path&" "&url
2. Systemutil.Run :
---------------------------
It is used to launch all files
Syntax:
--------------
1. windowbase
systemutil.Run "<exepath>"
2. Webbasedd
to open url
Systemutil.Run "<Exepath>","<URL>"
To Open file
-------------------
systemutil.Run "<filepath>"
Eg:
iePath="C:\Program Files (x86)\Internet Explorer\iexplore.exe"
url="http://Google.com"
systemutil.Run iePath,url
Window
-----------------
Systemutil.Run "C:\Program Files (x86)\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
Systemutil.Run "C:\Users\Administrator\Desktop\Oct172015"
Open only ie browser
-----------------------------
Systemutil.Run "C:\Program Files (x86)\Internet Explorer\iexplore.exe"
Systemutil.Run "C:\Users\Administrator\Desktop\Testing\Sample.txt"
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
ReplyDeleteSoftware Testing Services
Functional Testing Services
Test Automation Services
QA Automation Testing Services
Regression Testing Services
API Testing Services
Compatibility Testing Services
Performance Testing Services
Security Testing Services
Vulnerability Testing Services
Functional Testing Services
Great article with excellent idea!Thank you for such a valuable article. I really appreciate for this great information.. Probellum Vip
ReplyDelete