Geeks Talk

Prepare for your Next Interview




Generting script

This is a discussion on Generting script within the QTP forums, part of the Software Testing category; Hi friends I am new to QTP... From the QTP Tools menu i selected object identification...and then i clicked on generte script option. The script file has been generated ...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-16-2008
Expert Member
 
Join Date: Apr 2008
Location: tamilnadu
Posts: 419
Thanks: 13
Thanked 35 Times in 34 Posts
deepasree is on a distinguished road
Generting script

Hi friends

I am new to QTP... From the QTP Tools menu i selected object identification...and then i clicked on generte script option. The script file has been generated with the file extension.vbs ...

can anybody tell me what is the use of generating script. Is there is any possibility to add the generated script some where in the application? If it is so where can we add the generated script? What is the use?

Thanks
Deepasree
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-16-2008
Expert Member
 
Join Date: Jan 2007
Location: Chennai
Posts: 133
Thanks: 1
Thanked 39 Times in 25 Posts
Sridevichitthu is on a distinguished road
Re: Generting script

Hi Deepa,

One of useful thing in QTP is the scripting.QTP generate visual basic script file whish is portable to use in applications like QTP.

Here is the Example of how to delete web cookies using QTP script

Browser("Browser").WinToolbar("ToolbarWindow32").Press "&Tools"
Browser("Browser").WinMenu("ContextMenu").Select "Tools;Internet Options..."
Browser("Browser").Dialog("Internet Options").WinButton("Delete Cookies").Click
Browser("Browser").Dialog("Internet Options").Dialog("Delete Cookies").WinButton("OK").Click
Browser("Browser").Dialog("Internet Options").WinButton("OK").Click

This script code deleted cookies on Web,similar way you can import VBS file created by you or you can modify existing file to use in QTP.

It all depends on the need of Application.

Cheers,
Sridevichitthu
Reply With Quote
  #3 (permalink)  
Old 07-17-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 142
Thanks: 3
Thanked 11 Times in 11 Posts
NawabShaikh is on a distinguished road
Thumbs up Re: Generting script

Quote:
Originally Posted by deepasree View Post
Hi friends

I am new to QTP... From the QTP Tools menu i selected object identification...and then i clicked on generte script option. The script file has been generated with the file extension.vbs ...

can anybody tell me what is the use of generating script. Is there is any possibility to add the generated script some where in the application? If it is so where can we add the generated script? What is the use?

Thanks
Deepasree
Gerated Script are used in case u want the settings to be portable for another run/machine. the Settings are saved & hence for a team u need not manually change the setting's, Execute the script on that machine & accordingly QTP gets configured
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to convert the QTP script as LR script... coolkrish LoadRunner 5 07-15-2008 09:49 AM
script ronaldrahme SQL 2 06-30-2008 08:07 AM
Conversion of QTP script in to Loadrunner script coolkrish LoadRunner 8 06-20-2008 04:22 AM
Script which retrieves the current path of the test script niranjanbiswal QTP 1 07-18-2007 03:12 PM


All times are GMT -4. The time now is 09:18 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved