I have listed here two QTP scripts examples specially for fresher, one is related to webpage and other is related to simple GUI (Graphical user interface).
Sample QTP script 2:
SystemUtil.Run "http://google.com/","","",""Browser("Google").Page("Google").WebEdit("q").Set "mba"Browser("Google").Page("Google").WebEdit("q").SubmitBrowser("Google").Page("mba - Google Search").SyncBrowser("Google").Close
Above sample script will open google.com and type mba in search box and close it.
Note: This is just sample script, This will not work if you just copy and paste it to QTP. You have to first record it. When you record any webpage its objects will be automatically stored to object repository. Please Refer to know how to record above script : Learn to Automate Webpage.
Visit here to get detail knowledge of QTP object Repository and Learn QTP Step by Step.
Keep visiting this blog, I will share some more advance QTP VB script examples. You are always welcome to give feedback that will improve my blog. I am always trying to give 100% perfect knowledge about QTP.
Big Thanks for this wonderful read. I enjoyed every little bit of reading and I have bookmarked your website to check out new stuff of your blog a must read blog.
ReplyDeleteperformance testing training in chennai | qtp training institute in chennai with placement
Nice to read your article in this blog and very informative to develop my future career
ReplyDeleteBest qtp training institute in Chennai
Qtp classes in chennai
qtp training institute in chennai with placement
Automation testing training in chennai
Best QTP Training Institutes in Chennai